My app at first loads the datas from internet(I am using webservice) I want to check internet access at app startup.
NetworkInfo i = conMgr.getActiveNetworkInfo(); if (i == null) return false; if (!i.isConnected()) return false; if (!i.isAvailable()) return false; return true;