Created
July 26, 2017 11:55
-
-
Save sprejjs/d3e1ce314030824b7fb840a81c996a6f 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
Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); | |
if (takePictureIntent.resolveActivity(getPackageManager()) != null) { | |
startActivityForResult(takePictureIntent, CAMERA_REQUEST_CODE); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment