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:
Next, see the following lines of code:
I think you know what to do next with two methods above!
Thanks for visiting!
It’s very simple !
First, your PC & Android Device must be connected to the same WIFI network.
Step 1: Install WiFi ADB into your android device.
Step 2: After the app is installed successfully on your device, open it and “TURN ON”, then your screen will look like this below:
Step 3: You can see on your screen “adb connect xxx.xxx.xxx.xxx:5555“,
open command prompt on PC and run that command.
Step 4: Now, go to your IDE (Android studio, eclipse..), Run your application, from the new dialog opened, you can see your device has been listed in “running device list”.
Remember: PC & Android device must be connected to the same WIFI network.