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 .