This sample code checks whether the android device is connected to Internet and if it is connected to internet, it is connected to Wifi or Not? MAKE SURE YOU ADD BELOW PERMISSION TO THE ANDROID MANIFEST
This code snippet checks which of your networks are available in android.
Today we will see how to check whether there is any internet connection available to your phone in android.If any of the internet connection is available then the below function returns true otherwise false. Dont forget to add these two permissions in the manifest file. Press the +1 button to share it across the web and leave your… Read More »