I would like to launch the native Android camera and save the image at a specified location. The problem is after I click the capture photo, the preview comes up with the options to Save/Discard. After I click save, the native camera rotates in landscape and the image I captured is not displayed.
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
intent.setPackage(defaultCamera);
File f = new File(android.os.Environment.getExternalStorageDirectory(), "temp.jpg");
intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(f));
startActivityForResult(intent, 1);