[android-developers] Re: The GPS Shutdown Thing

2009-12-21 Thread Mark Wyszomierski
I was able to confirm this on an HTC Hero. If the refresh rate is a value over ~35 seconds, the GPS icon will sometimes get stuck on the notification bar. Setting a refresh rate of 1 second takes the notification off the bar without fail. Until the next HTC Hero update, anyway! On Dec 20, 7:07 pm,

[android-developers] Re: The GPS Shutdown Thing

2009-12-20 Thread Mark Wyszomierski
Alex, even if you use register / remove in onResume() / onPause(), you're saying you still see the GPS icon get stuck on the notification bar, unless you set your interval rate to something less than 35 seconds?: @Override protected void onPause() { super.onPause(); locationManager

[android-developers] Re: The GPS Shutdown Thing

2009-12-08 Thread Alex
I see that too. There's not much more we can do other than release it in onPause or onDestroy. On Dec 5, 8:42 pm, Mark Wyszomierski wrote: > Actually on the G1 running 1.5, the GPS icon doesn't remove itself > from the notifications bar if the phone goes into sleep mode while you > have a listene

[android-developers] Re: The GPS Shutdown Thing

2009-12-05 Thread Mark Wyszomierski
Actually on the G1 running 1.5, the GPS icon doesn't remove itself from the notifications bar if the phone goes into sleep mode while you have a listener registered (even though I'm deregistering onPause()). Example: 1) on app start, register listener for gps. 2) onPause() to home screen, log sh

[android-developers] Re: The GPS Shutdown Thing

2009-12-04 Thread Alex
This same code works fine on a G1 (1.5/1.6), Magic, Droid, Cliq, Samsung Behold and Moment. I was previously using a 10 minute update interval. I think it was the firmware update Sprint/HTC applied recently. While it fixed many of the gigantic bugs with the Hero, it introduced this one. I confi

[android-developers] Re: The GPS Shutdown Thing

2009-12-04 Thread Mark Wyszomierski
Alex, have you tried a simple test of just registering, then deregistering the listeners in an otherwise empty project? On my G1/1.5, I don't get this behavior, the GPS icon goes away shortly after a deregister. If it's a quirk on that device, that is worrisome. In that case, many apps will burn ou

[android-developers] Re: The GPS Shutdown Thing

2009-12-04 Thread Alex
I can confirm that an update interval of greater than 35 seconds causes the GPS status icon to blink on an Sprint HTC Hero (Firmware 1.56.651.2). It does not ever go away, it will blink all day long. You can run and exit Google Maps and it goes away. So now I get to decide whether to have this "b

[android-developers] Re: The GPS Shutdown Thing

2009-12-02 Thread Ken H
1 minute seems long to me too, 5-10 sec is a good generic interval if you just want it to turn off quicker. Also remember that the GPS needs a time *and* distance update interval. But my question is this, have you sat down and watched to see if the little satellite dish disappears after a minute?

[android-developers] Re: The GPS Shutdown Thing

2009-12-02 Thread Mark Wyszomierski
I've been working with the location providers lately, I haven't seen this behavior. When I deregister my listeners, the GPS icon goes away, I haven't seen it stick around. Even one minute intervals for GPS seems like a lot for me - I'm guessing users won't be able to move fast enough in one minute

[android-developers] Re: The GPS Shutdown Thing

2009-11-19 Thread jtoolsdev
I'm looking to a solution using the MyLocationOverlay library where one can use runOnFirstFix which can launch the thread (which I already have) when the current location is found. Once it is found I can shut down the location stuff as I only need it at the start of the program. On Nov 19, 3:20 

[android-developers] Re: The GPS Shutdown Thing

2009-11-19 Thread Nathan
On Nov 19, 12:09 pm, jtoolsdev wrote: > The recommendation of > the SDK is for setting up the location listener is to set time at > 6ms or 1 minute.   Really? Does Google Maps follow that guideline? > My tests show if you use that number when > exiting the app it may not shutdown GPS.   S