Getting location updates requires lots of bolierplate code in Android, You need to take care of
Google Play services availablity Check, Update Google play Service Dialog Creation of GoogleApiClient and its callbacks connected,disconnected etc. Stopping and releasing resources for location updates Handling Location permission scenarios Checking Location services are On or Off Getting lastknown location is not so easy either Fallback to last known location if not getting location after certain duration Android-EasyLocation does all this stuff in background, so that you can concentrate on your business logic than handling all above
from The Android Arsenal
No comments:
Post a Comment