Android Application: Got Internet Connection
How can I check got a successful internet connect (Wifi/3G/whatever else) I already display an error to the user if they don't have Wifi connection but how can I make sure then tha
Solution 1:
If you just want to see if the phone is connected to the network, you could try: ConnectivityManager.getAllNetworkInfo()
and then for each network adapter check networkinfo.getState()
. That should tell you whether it's connected or not. However, I'm not sure if there's a way to specifically check for 3G.
Post a Comment for "Android Application: Got Internet Connection"