[android-developers] Re: GPS does not stop after ending my app

2011-03-21 Thread Stephan Wiesner
Hi TreKing, thanks for your answer. I removed the new GeoUpdateHandler, but that does not help. My Activity extends LocationListener: public class ShowMap extends MapActivity implements LocationListener so if I provide this on both methods it should work, should it not? @Override

Re: [android-developers] Re: GPS does not stop after ending my app

2011-03-21 Thread TreKing
On Mon, Mar 21, 2011 at 8:53 AM, Stephan Wiesner testexpe...@googlemail.com wrote: so if I provide this on both methods it should work, should it not? Yes. I would pair onStart() with onStop() or onPause() with onResume().

[android-developers] Re: GPS does not stop after ending my app

2011-03-21 Thread Stephan Wiesner
only it does not stop the GPS :-( On Mar 21, 3:03 pm, TreKing treking...@gmail.com wrote: On Mon, Mar 21, 2011 at 8:53 AM, Stephan Wiesner testexpe...@googlemail.com wrote: so if I provide this on both methods it should work, should it not? Yes. I would pair onStart() with onStop() or

Re: [android-developers] Re: GPS does not stop after ending my app

2011-03-21 Thread TreKing
On Mon, Mar 21, 2011 at 10:32 AM, Stephan Wiesner testexpe...@googlemail.com wrote: only it does not stop the GPS :-( I would double check your code and make sure you're not adding an extra listener somewhere. Also wait a few seconds for the GPS icon to go away before assuming it's not

[android-developers] Re: GPS does not stop after ending my app

2011-03-21 Thread Stephan Wiesner
Got it. I have to use MyLocationOverlay.disableMyLocation() as well. Works fine now. Thanks for your advice! Stephan On Mar 21, 4:49 pm, TreKing treking...@gmail.com wrote: On Mon, Mar 21, 2011 at 10:32 AM, Stephan Wiesner testexpe...@googlemail.com wrote: only it does not stop the GPS

Re: [android-developers] Re: GPS does not stop after ending my app

2011-03-21 Thread TreKing
On Mon, Mar 21, 2011 at 1:38 PM, Stephan Wiesner testexpe...@googlemail.com wrote: Got it. I have to use MyLocationOverlay.disableMyLocation() LOL - that you were using MyLocationOverlay would have been good to know. It manages it's own listener, as you saw.