hi all,

it' so strange about close gps location manager,
the gps signal dosen't stop.

my code is:

======code===========
public class g extends MapActivity{

   private LocationManager mLocationManager01;
   ....
   @Override
  protected void onCreate(Bundle savedInstanceState)
  {
    mLocationManager01 = (LocationManager)getSystemService
(Context.LOCATION_SERVICE);
    .....
 }
}
========================
and my stop code is:

mLocationManager01.removeUpdates(mLocationListener01);//stop gps
service

however,
this stop code I write into the onDetroy(),onPause(),onStop(),finish
(),
but sometimes the gps signal will not stop expectly.


something wrong??

thanks!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to