Tag Archives: internet check

internet_feature_androidarena

Hello guys ,how are today, today’s topic is very much easy and quick , in this tutorial we are going to do how to check the internet connectivity on Android device programatically .You can check it and include your code within if , else loop and do your desire codings.
Lets have a look on coding part – First of all i take one button to test internet onClick of Button.You can Download Source code-

Download Code

activity_main.xml

 MainActivity.java

InternetDetector.java

You can download PNG images or icons from the source code in drawable folder .If you want to customize your dialog box .

AndroidManifest.xml

 

Now Run your Project and check out the output-

OutPut-

androidarena_internet

 

internet2

 

internet

 

If you have any query related to this code and any Topic regarding Android you can ask me any time 🙂 Happy coding.