Hi
I have a service with a location manger and a lister that stores
location in the DB. When the client runs stopService the service will
remove the listener but for some reason i still get 5 -10 locations
update to my listener why do i get this.
public void onDestroy() {
Log.w("GpsRecService ", "Shutdown service");
m_locationMgr.removeUpdates(listener);
}
10-16 16:42:38.043: WARN/GpsRecService(7407): Shutdown service <--
here the listner is removed
10-16 16:42:38.073: INFO/LocationUpdater(7407): add location Location
[mProvider=gps,mTime=1255704141000,mLatitude=57.72109508514404,mLongitude=12.01827585697174,mHasAltitude=true,mAltitude=117.0,mHasSpeed=true,mSpeed=0.0,mHasBearing=true,mBearing=0.0,mHasAccuracy=true,mAccuracy=24.0,mExtras=Bundle
[mParcelledData.dataSize=52]]
10-16 16:42:38.090: new location found store to DB
10-16 16:42:39.833: INFO/LocationUpdater(7407): add location Location
[mProvider=gps,mTime=1255704142000,mLatitude=57.72109508514404,mLongitude=12.01827585697174,mHasAltitude=true,mAltitude=117.0,mHasSpeed=true,mSpeed=0.0,mHasBearing=true,mBearing=0.0,mHasAccuracy=true,mAccuracy=24.0,mExtras=Bundle
[mParcelledData.dataSize=52]]
10-16 16:42:39.990: new location found store to DB
....
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---