Code example for LocationManager

Methods: removeGpsStatusListenerremoveUpdates

0
 
    /** 
     * Called within onPause() 
     */ 
    public void stop() { 
	mManager.removeUpdates(mLocationListener);
	mManager.removeGpsStatusListener(mStatusListener);
 
	mLog.append("removeUpdates\n");
	mLog.append("removeGpsStatusListener\n");
 
	sendStatus(CHANGED_LOG);
    } 
 
    /** 
     * SendStatus to the parent with a message that the status has 
     * changed. 
     */ 
    private void sendStatus(int status) {
	Message msg = mHandler.obtainMessage();
Contextual code suggestions in your IDE  Get Codota for Java