Location Permissions Done Right
Foreground and precise location.
Permissions Are Not Optional
Location is one of Android's most sensitive permissions. Declaring it in the manifest isn't enough — on modern Android you must ask the user at runtime and handle every answer gracefully.
This lesson covers the permission tiers, requesting them in Compose, handling denials and the new precise vs approximate and background rules.
The Three Location Permissions
Android splits location into tiers:
ACCESS_COARSE_LOCATION— approximate (~city block).ACCESS_FINE_LOCATION— precise (GPS-level).ACCESS_BACKGROUND_LOCATION— access while your app isn't in the foreground.
Only request what you actually need. Background access triggers extra scrutiny on the Play Store.
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<!-- only if truly needed: -->
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />All lessons in this course
- Showing a Map
- Getting the User Location
- Markers and Camera
- Location Permissions Done Right