Blog Archives

Android Check Internet Access

You can use the following function to check if there is internet access on Android public boolean isOnline() {     ConnectivityManager cm =         (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);     NetworkInfo netInfo = cm.getActiveNetworkInfo();     if (netInfo

Posted in Android, Tips and Tricks Tagged with: , ,