Created
October 19, 2017 12:29
-
-
Save ssaurel/5c8dcd81edae1a6dd36030fd6b3d5ee1 to your computer and use it in GitHub Desktop.
Request Permissions for Camera on the SSaurel's Blog
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
buttonEnable.setOnClickListener(new View.OnClickListener() { | |
@Override | |
public void onClick(View view) { | |
ActivityCompat.requestPermissions(MainActivity.this, | |
new String[] {Manifest.permission.CAMERA}, CAMERA_REQUEST); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment