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) { 
      StringBuilder buf=new StringBuilder("javascript:whereami("); 
       
      buf.append(String.valueOf(location.getLatitude())); 
      buf.append(","); 
      buf.append(String.valueOf(location.getLongitude())); 
      buf.append(")"); 
       
      browser.loadUrl(buf.toString()); 
    } 
     
    public void onProviderDisabled(String provider) {