Created
February 27, 2017 09:12
-
-
Save NeedPainkiller/4f3cd318b4f140b6831f3b392307da0e to your computer and use it in GitHub Desktop.
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
import static android.Manifest.permission.*; | |
... | |
... | |
... | |
private AndroidPermission androidPermission; | |
androidPermission.requestPermission(CAMERA,INTERNET, | |
ACCESS_FINE_LOCATION, ACCESS_COARSE_LOCATION) | |
.subscribe(deniedPermissions -> { | |
for (String deniedPermission : deniedPermissions) { | |
Log.d("Permission Denial",deniedPermission); | |
} | |
},throwable -> Log.d("ERROR",throwable.getMessage()), | |
() -> Log.d("COMPLETE","Permissions All Granted")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment