Build location-aware apps
One of the unique features of mobile applications is location awareness. Mobile users take their devices with them everywhere, and adding location awareness to your app offers users a more contextual experience. The location APIs available in Google Play services facilitate adding location awareness to your app with automated location tracking, wrong-side-of-the-street detection, geofencing, and activity recognition.
Development resources
Request the proper permissions
Declare permissions and make requests depending on the use cases of your app's features.
Receive location updates
Use the Fused Location Provider to deliver more relevant location information to users.
Optimize power usage
Improve the battery efficiency of your users' devices. Follow the guidelines related to background location limits.
Add maps to your app
Plot locations of interest on a map, and give users control over what they see on the map.
Latest news
Additional resources
To learn more about requesting access to location information in your app, see the following additional resources:
Codelabs
- Location in Android 10 with Kotlin: Learn how to request location on devices that run Android 10, including requesting location while the app is in use.
Samples
- LocationUpdatesForegroundService project on GitHub: An example of an app that continues a user-initiated action without requesting all-the-time access to background location.
- LocationUpdatesPendingIntent project on GitHub: An example of an app that requests access to background location.