public static Intent newTakePictureIntent ( File tempFile ) { Intent intent = new Intent ( MediaStore . ACTION_IMAGE_CAPTURE ) ; intent . putExtra ( MediaStore . EXTRA_OUTPUT , Uri . fromFile ( tempFile ) ) ; return intent ; }
Creates an intent that will launch the camera to take a picture that s saved to a temporary file so you can use it directly without going through the gallery .