class NetworkStateTracker extends ConstraintTracker<NetworkState> {

    @Override
    public void stopTracking() {
        if (isNetworkCallbackSupported()) {
            Log.d(TAG, "Unregistering network callback");
            mConnectivityManager.unregisterNetworkCallback(mNetworkCallback);
        } else {
            Log.d(TAG, "Unregistering broadcast receiver");
            mAppContext.unregisterReceiver(mBroadcastReceiver);
        }
    }

    public  NetworkStateTracker(Context context);

}