List of usage examples for android.provider MediaStore EXTRA_OUTPUT
String EXTRA_OUTPUT
To view the source code for android.provider MediaStore EXTRA_OUTPUT.
Click Source Link
From source file:Main.java
private static void addPhotoPickerExtras(Intent intent, Uri photoUri) { intent.putExtra(MediaStore.EXTRA_OUTPUT, photoUri); intent.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION | Intent.FLAG_GRANT_READ_URI_PERMISSION); intent.setClipData(ClipData.newRawUri(MediaStore.EXTRA_OUTPUT, photoUri)); }
From source file:Main.java
public static Intent takePicture(Uri uri) { Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); intent.putExtra(MediaStore.EXTRA_OUTPUT, uri); return intent; }
From source file:Main.java
public static Intent buildCaptureIntent(Uri uri) { Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); intent.putExtra(MediaStore.EXTRA_OUTPUT, uri); return intent; }
From source file:Main.java
public static Intent buildImageCaptureIntent(Uri uri) { Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); intent.putExtra(MediaStore.EXTRA_OUTPUT, uri); return intent; }
From source file:Main.java
public static Intent getTakePhotoIntent(Uri imageUri) { Intent intent = new Intent("android.media.action.IMAGE_CAPTURE"); intent.putExtra(MediaStore.EXTRA_OUTPUT, imageUri); return intent; }
From source file:Main.java
public static Intent getCameraIntent(Uri saveFileURI) { Intent mIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); return mIntent.putExtra(MediaStore.EXTRA_OUTPUT, saveFileURI); }
From source file:Main.java
public static Intent getCameraIntent(final Uri saveFileURI) { Intent mIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); return mIntent.putExtra(MediaStore.EXTRA_OUTPUT, saveFileURI); }
From source file:Main.java
public static Intent getCaptureIntent(Uri uri) { Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); if (uri != null) { intent.putExtra(MediaStore.EXTRA_OUTPUT, uri); }//from w w w.j a v a 2s . co m return intent; }
From source file:Main.java
public static Intent makeTakePicturesIntent(File file) { Intent intent = new Intent("android.media.action.IMAGE_CAPTURE"); intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(file)); return intent; }
From source file:Main.java
public static void takePhoto(Activity activity, int requestCode, Uri uri) { Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); intent.putExtra(MediaStore.EXTRA_OUTPUT, uri); activity.startActivityForResult(intent, requestCode); }