Code example for LocationManager

Methods: removeUpdates

0
  } 
   
  @Override 
  public void onPause() { 
    super.onPause(); 
    myLocationManager.removeUpdates(onLocation);
  } 
   
  LocationListener onLocation=new LocationListener() {
    public void onLocationChanged(Location location) { 
      // ignore...for now 
    } 
     
    public void onProviderDisabled(String provider) { 
      // required for interface, not used 
    } 
     
    public void onProviderEnabled(String provider) { 
      // required for interface, not used 
    }