Skip to content

Instantly share code, notes, and snippets.

@qichuan
Created July 14, 2021 13:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qichuan/f5ebd4f0e959c25cbc8a40ac9334da72 to your computer and use it in GitHub Desktop.
Save qichuan/f5ebd4f0e959c25cbc8a40ac9334da72 to your computer and use it in GitHub Desktop.
android_location_manifest_android_10
<!-- Specify the permissions that you are using -->
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<!-- Specify the background location permission. -->
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
<!-- Declare a foreground service, if applicable -->
<service
android:name="MyForgroundService"
android:foregroundServiceType="location">
</service>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment