public synchronized void stopListening() {
        if (mListening) {
            mContext.unregisterReceiver(mReceiver);
            mContext = null;
            mNetworkInfo = null;
            mOtherNetworkInfo = null;
            mIsFailOver = false;
            mReason = null;
            mListening = false;
        }
    }
public synchronized void stopListening() {
        if (mListening) {
            mContext.unregisterReceiver(mReceiver);
            mContext = null;
            mNetworkInfo = null;
            mOtherNetworkInfo = null;
            mIsFailOver = false;
            mReason = null;
            mListening = false;
        }
    }
public synchronized void stopListening ( ) { if ( mListening ) { mContext . unregisterReceiver ( mReceiver ) ; mContext = null ; mNetworkInfo = null ; mOtherNetworkInfo = null ; mIsFailOver = false ; mReason = null ; mListening = false ; } }
This method stops this class from listening for network changes.
This method stops this class from listening for network changes .