public static Intent photoCapture ( String file ) { Uri uri = Uri . fromFile ( new File ( file ) ) ; Intent intent = new Intent ( MediaStore . ACTION_IMAGE_CAPTURE ) ; intent . putExtra ( MediaStore . EXTRA_OUTPUT , uri ) ; return intent ; }
Call standard camera application for capturing an image