-
-
Save parzibyte/207a6c8dd60b8ac8f7810a385d043095 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
// Recuerda: MainActivity es el nombre de tu actividad | |
int estadoDePermiso = ContextCompat.checkSelfPermission(MainActivity.this, Manifest.permission.CAMERA); | |
if (estadoDePermiso == PackageManager.PERMISSION_GRANTED) { | |
// Aquí el usuario dio permisos para acceder a la cámara | |
} else { | |
// Si no, entonces pedimos permisos... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment