Skip to content

Instantly share code, notes, and snippets.

View umarhussain15's full-sized avatar

Umar Hussain umarhussain15

View GitHub Profile
@umarhussain15
umarhussain15 / Connectivity.java
Created December 20, 2017 08:42 — forked from emil2k/Connectivity.java
Android utility class for checking device's network connectivity and speed.
package com.emil.android.util;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.telephony.TelephonyManager;
/**
* Check device's network connectivity and speed
* @author emil http://stackoverflow.com/users/220710/emil