Geolocation - Android location update while phone being inactive

De openkb
Aller à : Navigation, rechercher

Sommaire

Questions

I´m currently developing an app which is working as a proximity alert, using the network provider.

Running several tests, I noticed that my phone sometimes is not receiving updates when the screen is turned off.

Is LocationManager somehow affected by the phone´s standby?

Having reached my set destination, I turned my screen on and after some seconds (I request updates about every 60 seconds) my app suddenly gets a fresh and correct update. Especially when running Maps or other apps which use the network provider, my app does receive location updates more reliably.

Thanks for your answer in advance, Jonathan

Answers

I didn´t find a solution but the problem. It is a nasty Android Bug, which prevents the system to send location updates with new coordinates when the device is in wakelock.

http://code.google.com/p/android/issues/detail?id=10931 http://code.google.com/p/android/issues/detail?id=10931

I hope this might help anybody out there to solve some problems.

Source

License : cc by-sa 3.0

http://stackoverflow.com/questions/5532055/android-location-update-while-phone-being-inactive

Related

Outils personnels
Espaces de noms

Variantes
Actions
Navigation
Outils