04-10-2013 01:55 AM
I port my android application to BB10 it is location vased services. So when i disable the location service in android it gives me error message like this : "The Phone's GPS must be enabled" and same way i disable the location service in BB10 it gives me error message like : " Timeout obtaining the GPS location"
So what is issue in this?
Solved! Go to Solution.
04-15-2013 04:00 PM
04-19-2013 05:24 PM - edited 04-22-2013 03:09 PM
The issue is that the Android location provider enabled / disabled does not match the OS Settings. So if it's enabled in Android, but disabled in the OS, then Android assumes it should be able to access this data. It cannot.
It is a bug / oversight that toggling the OS Setting doesn't toggle the Android setting.
Edit: The development team knows of this issue and a solution is being worked on for a future release.
04-19-2013 05:35 PM
Ok, got it. Seems like a definite bug.
Log it in the JIRA system.
Also, can you confirm for me the following (I've opened a thread on this):
If application is getting GPS updates and user clicks power button to turn off screen, then Location updates will stop.
I'm testing on an actual Z10 device, not sure about simulator.
Location updates resume when Activity is visible again.
Note too that Activity onStop() is called which is also a bug since in all other Android devices onStop does not get called when user turns off screen (only onPause is called).
04-19-2013 05:53 PM
onStop might get called eventually on stock Android after some time when the screen goes off. Perhaps if there's a keyguard or something. Either way I always anticipate onStop as possible if the screen is off.