Skip to content

Instantly share code, notes, and snippets.

Avatar

Umar Hussain umarhussain15

View GitHub Profile
@umarhussain15
umarhussain15 / Connectivity.java
Created Dec 20, 2017 — forked from emil2k/Connectivity.java
Android utility class for checking device's network connectivity and speed.
View Connectivity.java
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