Skip to content

Instantly share code, notes, and snippets.

@NeedPainkiller
Created February 27, 2017 09:12
Show Gist options
  • Save NeedPainkiller/4f3cd318b4f140b6831f3b392307da0e to your computer and use it in GitHub Desktop.
Save NeedPainkiller/4f3cd318b4f140b6831f3b392307da0e to your computer and use it in GitHub Desktop.
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