Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
- takePictureIntent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(f));//without this line the intent is ok
- startActivityForResult(takePictureIntent, actionCode);
- File f = new File("valid path");
- File file = new File(dataFile);
- Uri outFileUri = Uri.fromFile(file);
- Intent intent = new Intent("android.media.action.IMAGE_CAPTURE");
- intent.putExtra(MediaStore.EXTRA_OUTPUT, outFileUri);
- startActivityForResult(intent, TAKE_PHOTO);
Add Comment
Please, Sign In to add comment