PATRIK27 / osmdroid

Automatically exported from code.google.com/p/osmdroid
0 stars 0 forks source link

improve gps startup latency #247

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I came across this post [1],[2] of Reto Meier in which he describes the way to 
reduce startup latency for location-based apps.

I think every location based app should make use of his tweaks in the hope to 
reduce the time for the first 'gps-fix'.

Reto has the code in a Google Code project, see [3]

[1] http://android-developers.blogspot.com/2011/06/deep-dive-into-location.html
[2] 
http://blog.radioactiveyak.com/2011/06/deep-dive-into-location-part-2-being.html
[3] http://code.google.com/p/android-protips-location/

Original issue reported on code.google.com by sebastia...@gmail.com on 1 Aug 2011 at 2:04

GoogleCodeExporter commented 8 years ago
I read the blog when it was first published, and I decided at the time that 
what we do is good enough.

We implemented it as a static method
LocationUtils.getLastKnownLocation
which is only used in MyLocationOverlay.
MyLocationOverlay is only used by the apps using osmdroid.

Perhaps we could change MyLocationOverlay so that it has the possibility to use 
android-protips-location as an alternative to the static method, for example by 
adding a constructor which accepts it as a parameter (not directly of course).  
That way osmdroid users can use android-protips-location if they want.

Original comment by neilboyd on 1 Aug 2011 at 10:14