public void stopListening ( ) { if ( locationManager == null ) { return ; } if ( DEBUG ) { Log . d ( TAG , "Stop location listening..." ) ; } if ( listener != null ) { listener . onLocationStop ( ) ; } myHandler . removeMessages ( MSG_STOP_FINE_PROVIDER ) ; locationManager . removeUpdates ( coarseListener ) ; locationManager . removeUpdates ( fineListener ) ; locationManager = null ; }
Stop updates .