One of the simple and best utility i found when i was doing a research. Hope it will help you guys as well.     import android.content.Context; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.telephony.TelephonyManager; /**  * Check device's network connectivity and speed  *  */ public class Connectivity {     /**