Android ContentProvider check network access
is there any way how to take advantage of ContentProvider to check, whether my Android phone is connected to the internet? Thanks Rakhita // check internet connectivity public static boolean isNetworkAvailable(Context context) { boolean networkStatus; try { ConnectivityManager connectivityManager = (ConnectivityManager) context .getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo activeNetworkInfo = connectivityManager .getActiveNetworkInfo(); networkStatus = (activeNetworkInfo != null && activeNetworkInfo.isConnected()) ? true : false; } catch (Exception e) { e.printStackTrace();