How to get location information on ANDROID?

On Android, here are the ways to get location information, depending on your purpose and use. Select the 2. below if you do not want specific accuracy.

1. Location information acquisition with the accuracy of "FINE_LOCATION"

Example: FusedLocationApi.getLastLocation()
Disadvantage: High battery consumption may lead to user's complaints

2. Location information acquisition with the accuracy of "COARSE_LOCATION"

Accuracy: About 50 meters to 100 meters: Recommended in many cases because it does not consume extra battery. It also removes user's concern about personal information.
Reference: Getting the Last Known Location | Android Developers

3. Google Maps Geolocation API
There is a charge. No special permissions required, but network communication required.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request
Powered by Zendesk