Re: [android-developers] Re: Does getBestLastKnownLocation block?
09.12.2010 4:49, Greg Giacovelli пишет: Kostya, Is it just not able to get a fix or does your phone display become completely black? If it just is not getting a fix then yes we know of that issue. But on phones where the screen goes black reoccurs even when restarting the phone (and consequently the gps). It's sort of bizarre. There is no black screen, crash or ANR. Applications are able to get a network-provided location, but not GPS location. There is no radar icon in the status bar to indicate working GPS. When GPS works, GPS Test (available on Market), first shows a list of candidate satellites, which then change color to indicate signal strength. With this bug, no satellites show up ever. -- Kostya -Greg -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Does getBestLastKnownLocation block?
Yeah sorry I was mixing what I was trying to retrieve mixed with the actual API call. But yea that is correct. It's not a phone I have either :( We can't reproduce it consistently. And a lot of the Galaxy S phones do have defects in their GPS software but I never thought it would just block. I have a few logs from clients but it seems to feel like their locking inside of their libgps code is not releasing it's global lock. We have a few other theories but since the LocationManager class isn't documented too well (it seems to be somewhat of a port of J2ME's but not completely) we are just shooting in the dark. I noticed a pattern in our application which registers the same LocationListener multiple times without deregistering it. The registration does not fail and we don't get updates after we unregister once so we assumed it was fine and made the code more readable because we didn't have to worry about side effects. However now I am not so sure. But even if that was the problem it should be something that is completely reproducible on the same OS/firmware version. To be clear we saw the same phone, Samsung Galaxy S Epic, install the app and each one may or may not get stuck in this really nasty state. Basically the overall GPS system for the OS gets frozen, even maps can't get a fix after it gets in this state. Enabled providers don't seem to be the issue as they have both GPS and network locations providers enabled on each phone. On Dec 7, 10:54 am, Mark Murphy mmur...@commonsware.com wrote: On Tue, Dec 7, 2010 at 1:49 PM, Greg Giacovelli miyamo...@gmail.com wrote: After which we call on the UI thread LocationManager.getBestLastKnownLocation() for the provider we were interested in. There is no getBestLastKnownLocation() in LocationManager in Android. I am assuming you are referring to getLastKnownLocation(). However on certain phones, the Epic in particular sometimes this call never returns. Seriously? That's a Galaxy S phone, which is pretty popular, though it is not one I have in my stable. It certainly feels like a compatibility bug. Do you have any info on criteria for when this will block (e.g., only if no providers are enabled)? -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Does getBestLastKnownLocation block?
On Wed, Dec 8, 2010 at 1:22 PM, Greg Giacovelli miyamo...@gmail.com wrote: To be clear we saw the same phone, Samsung Galaxy S Epic, install the app and each one may or may not get stuck in this really nasty state. Basically the overall GPS system for the OS gets frozen, even maps can't get a fix after it gets in this state. Enabled providers don't seem to be the issue as they have both GPS and network locations providers enabled on each phone. I am not sure what to tell you. It feels like a device-specific bug. Unfortunately, with neither of us having one, getting a reproducible test case will be...troublesome. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 3.0.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Does getBestLastKnownLocation block?
I have a Samsung Galaxy S (retail European version), and can confirm this. GPS only works immediately after it's been restarted by switching it off/on in phone settings. After a while (can't give exact duration, but somewhere between a few hours and a few days) it stops working. This affects all applications: Google Maps, GPS Test, etc. The device just never gets a GPS fix, and the GPS antenna icon in the status bar never appears when it should. From what I understand, there was supposed to be a hotfix for this, but it got steamrolled by the 2.2 update. Greg: you might want to test your code right after restarting GPS on the phone. -- Kostya 08.12.2010 21:34, Mark Murphy пишет: On Wed, Dec 8, 2010 at 1:22 PM, Greg Giacovellimiyamo...@gmail.com wrote: To be clear we saw the same phone, Samsung Galaxy S Epic, install the app and each one may or may not get stuck in this really nasty state. Basically the overall GPS system for the OS gets frozen, even maps can't get a fix after it gets in this state. Enabled providers don't seem to be the issue as they have both GPS and network locations providers enabled on each phone. I am not sure what to tell you. It feels like a device-specific bug. Unfortunately, with neither of us having one, getting a reproducible test case will be...troublesome. -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Does getBestLastKnownLocation block?
Thanks Mark :( At least I don't feel crazy :) Kostya, Is it just not able to get a fix or does your phone display become completely black? If it just is not getting a fix then yes we know of that issue. But on phones where the screen goes black reoccurs even when restarting the phone (and consequently the gps). It's sort of bizarre. -Greg On Dec 8, 11:10 am, Kostya Vasilyev kmans...@gmail.com wrote: I have a Samsung Galaxy S (retail European version), and can confirm this. GPS only works immediately after it's been restarted by switching it off/on in phone settings. After a while (can't give exact duration, but somewhere between a few hours and a few days) it stops working. This affects all applications: Google Maps, GPS Test, etc. The device just never gets a GPS fix, and the GPS antenna icon in the status bar never appears when it should. From what I understand, there was supposed to be a hotfix for this, but it got steamrolled by the 2.2 update. Greg: you might want to test your code right after restarting GPS on the phone. -- Kostya 08.12.2010 21:34, Mark Murphy пишет: On Wed, Dec 8, 2010 at 1:22 PM, Greg Giacovellimiyamo...@gmail.com wrote: To be clear we saw the same phone, Samsung Galaxy S Epic, install the app and each one may or may not get stuck in this really nasty state. Basically the overall GPS system for the OS gets frozen, even maps can't get a fix after it gets in this state. Enabled providers don't seem to be the issue as they have both GPS and network locations providers enabled on each phone. I am not sure what to tell you. It feels like a device-specific bug. Unfortunately, with neither of us having one, getting a reproducible test case will be...troublesome. -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en