What is the best way to detect if a user has network service when a user has entered the London Underground?
I've tried the following;
ConnectivityManager conMgr = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
if(conMgr.getNetworkInfo(0).isAvailable() || conMgr.getNetworkInfo(1).isAvailable())
{
// Application online
}
I've also tried getting the network level, but this seems to return the last level before the tube has entered the underground.
Any suggestions gratefully appreciated.