I am using MapView to show current location of a user on a Map. To update the location while the user is on the move, I have to a choice:
But I have read here at SO that it might not be good approach to use Location Manager and MyLocationOverlay should be preferred over to this.
Also, consider that my app is a location based app the location of the user should be tracked as he moves.
Can people suggest which is the best approach to implement and has relatively less impact on battery.
Note that I am a beginner in Android, so pardon any obvious mistakes.
Thank you in advance, andy
I using Little Fluffy Location - Its a library, you setting time for updates or distance, this library make a broadcast receiver, implements LocationListener, n notify your application when location changes.
Simple, fast, easy!
Please refer this link:
After location changed, update your overlay on the map! =)
if you need, i send my full solution for locations.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With