Check Your Network Connection In Android

Hi, today i’m gonna show you how to check your internet connection in your android device.

 

Create your own project and add the permission like below:

2015-12-31_15-50-45.jpg

 

Next, see the following lines of code:

2015-12-31_15-49-37.jpg

I think you know what to do next with two methods above!

 

Thanks for visiting!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s