Reputation: 6090
I'm playing around with a bit of a game as a way to learn Android and spend more time getting to know the town I just moved to. The premise behind the game is that you get points for visiting various places in the area around you. What I'd like to do is have the app periodically track your location so that when you launch the game again you can see the different places you've been and how many points you accrued for visiting the various places.
It seems like I could use this github project as a starting point, but it seems like that just has a long running task on it that seems like it would really drain your phones battery.
Is there a better way to handle this kind of thing?
Upvotes: 0
Views: 104
Reputation: 739
Because this will be battery intensive you should consider using the new FusedLocationProvider https://developer.android.com/google/play-services/location.html
Upvotes: 2