I\'m new to Android development and working on an Android application that requires the phone to be connected to the internet, through either Wifi, EDGE or 3G.
then that means getActiveNetworkInfo() returned null, because there is no active network -- in that case, your isConnected() method should return false.