Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Request Permissions for Camera on the SSaurel's Blog
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