### 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](http://developer.android.com/training/location/permissions)

Declare permissions and make requests depending on the use cases of your app's features.  
[Learn more](http://developer.android.com/training/location/permissions)  

### [Receive location updates](http://developer.android.com/training/location/receive-location-updates)

Use the Fused Location Provider to deliver more relevant location information to users.  
[Learn more](http://developer.android.com/training/location/receive-location-updates)  

### [Optimize power usage](http://developer.android.com/guide/topics/location/battery)

Improve the battery efficiency of your users' devices. Follow the guidelines related to background location limits.  
[Learn more](http://developer.android.com/guide/topics/location/battery)  

### [Add maps to your app](http://developer.android.com/training/maps)

Plot locations of interest on a map, and give users control over what they see on the map.  
[Learn more](http://developer.android.com/training/maps)

## 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](https://codelabs.developers.google.com/codelabs/while-in-use-location/#0): Learn how to request location on devices that run Android 10, including requesting location while the app is in use.

## Samples

Location samples are part of [Android OS Platform Samples](https://github.com/android/platform-samples) . Refer to the [location module]() in Android OS platform Samples and follow [instructions](https://github.com/android/platform-samples#how-to-run) on how to run samples.  

### [Location Permissions](https://github.com/android/platform-samples/tree/main/samples/location/src/main/java/com/example/platform/location/permission)

Sample to demonstrate best practices for requesting location permissions.  
[View sample](https://github.com/android/platform-samples/tree/main/samples/location/src/main/java/com/example/platform/location/permission)  

### [Current Location](https://github.com/android/platform-samples/tree/main/samples/location/src/main/java/com/example/platform/location/currentLocation)

Sample to demonstrate best practices for fetching user's current location.  
[View sample](https://github.com/android/platform-samples/tree/main/samples/location/src/main/java/com/example/platform/location/currentLocation)  

### [Location updates](https://github.com/android/platform-samples/tree/main/samples/location/src/main/java/com/example/platform/location/locationupdates)

Sample to demonstrate best practices for recieving location updates.  
[View sample](https://github.com/android/platform-samples/tree/main/samples/location/src/main/java/com/example/platform/location/locationupdates)  

### [Background location access](https://github.com/android/platform-samples/tree/main/samples/location/src/main/java/com/example/platform/location/bglocationaccess)

Sample to demonstrate how to access location or recieve location updates when app is in background.  
[View sample](https://github.com/android/platform-samples/tree/main/samples/location/src/main/java/com/example/platform/location/bglocationaccess)  

### [Create and monitor geofences](https://github.com/android/platform-samples/tree/main/samples/location/src/main/java/com/example/platform/location/geofencing)

Sample to demonstrate how to create and monitor geofences.  
[View sample](https://github.com/android/platform-samples/tree/main/samples/location/src/main/java/com/example/platform/location/geofencing)  

### [User Activity Recognition](https://github.com/android/platform-samples/tree/main/samples/location/src/main/java/com/example/platform/location/useractivityrecog)

Sample to demonstrate best practices for user activity Recognition.  
[View sample](https://github.com/android/platform-samples/tree/main/samples/location/src/main/java/com/example/platform/location/useractivityrecog)