Tag: access

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

Tagged with: , ,
Top