[ Web Proxy ]
URL:
Viewing: https://developer.android.com/training/location [Back]  [Original]

Build location-aware apps  |  Sensors and location  |  Android Developers Skip to main content
Essentials Design & Plan Develop Google Play Blog
Search:
Android Studio
Android Developers [Android Developers]
Stay organized with collections Save and categorize content based on your preferences.
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

Declare permissions and make requests depending on the use cases of your app's features.
Use the Fused Location Provider to deliver more relevant location information to users.
Improve the battery efficiency of your users' devices. Follow the guidelines related to background location limits.
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:

Samples

Location samples are part of Android OS Platform Samples . Refer to the location module in Android OS platform Samples and follow instructions on how to run samples.
Sample to demonstrate best practices for requesting location permissions.
Sample to demonstrate best practices for fetching user's current location.
Sample to demonstrate best practices for recieving location updates.
Sample to demonstrate how to access location or recieve location updates when app is in background.
Sample to demonstrate how to create and monitor geofences.
Sample to demonstrate best practices for user activity Recognition.
Get the last known location

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2024-07-01 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-01 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page