https://github.com/abeade/permissions-test
Android permissions test
https://github.com/abeade/permissions-test
Last synced: about 1 year ago
JSON representation
Android permissions test
- Host: GitHub
- URL: https://github.com/abeade/permissions-test
- Owner: abeade
- Created: 2017-08-25T15:45:55.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-25T16:37:05.000Z (almost 9 years ago)
- Last Synced: 2025-02-05T19:35:53.032Z (over 1 year ago)
- Language: Java
- Size: 120 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# permissions-test
This sample application reclaims the **android.permission.ACCESS_FINE_LOCATION** permission, and then uses **PermissionChecker.checkSelfPermission** to verify the current permission status.
The value **PERMISSION_DENIED_APP_OP** is never returned.
1. Click on the application button calls to *ActivityCompat.requestPermissions*
2. The callback **onRequestPermissionsResult** is executed
3. Then the **PermissionChecker.checkSelfPermission** is executed and its return is printed on the textview