Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@Override
public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {
switch (requestCode) {
case REQUEST_LOCATION:
if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {
// Handle permission granted
} else {
// Handle permission denied
}
break;
default:
super.onRequestPermissionsResult(requestCode, permissions, grantResults);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment