title: How to stop location manager?
body: <p>Don't know why, but sometimes LocationManager is still working also after closing application.</p>
  
  <p>I call startGPS() in onCreate-Methode in one Activity (only one, let me call it StartActivity).</p>
  
  <pre><code>protected void startGPS(){    
   try {           
       lmanager = (LocationManager)getSystemService(Context.LOCATION_SERVICE);
       lmanager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, this);
       lmanager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, this);
   } catch(Exception e) {
       e.printStackTrace();
   }
  }
  </code></pre>
  
  <p>And if this activity will be destroyed (so, when application will be closed), I call endGPS()</p>
  
  <pre><code>public void endGPS(){
   try {           
       lmanager.removeUpdates(this);
       lmanager=null;
   } catch(Exception e) {
    e.printStackTrace();
   }
  }
  </code></pre>
  
  <p>Some ideas, some suggestions, what have I done wrong?!</p>