Last active
July 14, 2021 14:11
-
-
Save qichuan/aeaf1eff30454f84ec46b47e24ae7bf3 to your computer and use it in GitHub Desktop.
android_location_request_foreground
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Request permission | |
ActivityCompat.requestPermissions( | |
this@MainActivity, | |
arrayOf(Manifest.permission.ACCESS_FINE_LOCATION), | |
REQUEST_FOREGROUND_ONLY_PERMISSIONS_REQUEST_CODE | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment