Skip to content

Instantly share code, notes, and snippets.

@hitherejoe
Last active August 29, 2015 14:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hitherejoe/8daaef9fc0ff126911ea to your computer and use it in GitHub Desktop.
Save hitherejoe/8daaef9fc0ff126911ea to your computer and use it in GitHub Desktop.
@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