嗨下面是我如何启动我的相机。我总是得到 320 x 240 作为图像尺寸。关于如何设置相机以设备支持的最大尺寸拍摄图像的任何想法?
File photo = null;
String FILE_NAME ="20143";
Intent intent = new Intent("android.media.action.IMAGE_CAPTURE");
if (android.os.Environment.getExternalStorageState().equals(
android.os.Environment.MEDIA_MOUNTED)) {
photo = new File(android.os.Environment.getExternalStorageDirectory(), FILE_NAME);
} else {
photo = new File(getCacheDir(), FILE_NAME);
}
if (photo != null) {
intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(photo));
selectedImageUri = Uri.fromFile(photo);
startActivityForResult(intent, CAMERA_PIC_REQUEST);
}