Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
This is how you take a picture in android
private void dispatchTakePictureIntent() {
Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
if (takePictureIntent.resolveActivity(getPackageManager()) != null) {
startActivityForResult(takePictureIntent, REQUEST_IMAGE_CAPTURE);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment