HI,
I’m building an Android application requiring internet connection, and I’m using ConnectivityManager to check whether the device is connected to internet or not. Now, what’s the best strategy if it’s not connected? Should I quit the application and tell the user to first connect to internet? or is there any way to ask the user if he wants to get connected and connect programatically?
Thanks
Jul
In my opinion, you should send the user to the Phone Settings (after informing them that they need an Internet connection to continue using the application) so they can connect the system themselves. Ask them if they wish to exit or if they want to enable network connectivity.
AFAIK there’s a way to enable WiFi or 3G directly from the application API.