-
-
Save parzibyte/a1f0a48130f0c286ad20499798e6d603 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
@Override | |
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { | |
switch (requestCode) { | |
case CODIGO_PERMISOS_CAMARA: | |
if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { | |
permisoDeCamaraConcedido(); | |
} else { | |
permisoDeCamaraDenegado(); | |
} | |
break; | |
// Aquí más casos dependiendo de los permisos | |
// case OTRO_CODIGO_DE_PERMISOS... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment