My camera intent bitmap is only 160x120 i think how can i achieved full size bitmap
btw i tried EXTRA_OUTPUT but I dont know how to use it
i have 2 class
and my main class onActivityResult is this
case CAMERA_REQUEST_CODE:
if (resultCode == RESULT_OK) {
Bitmap image1 = (Bitmap) data.getExtras().get("data");
if (currentView == 0) {
frontView.setScaleType(ScaleType.CENTER);
frontView.setImageBitmap(image1);
isFrontActive = true;
} else if (currentView == 1) {
rearView.setScaleType(ScaleType.CENTER);
rearView.setImageBitmap(camera.getImage());
isRearActive = true;
}
}
break;
and this is photo.class code
public void openCamera() {
File file = new File(Environment.getExternalStorageDirectory(),
"Sample.jpg");
Uri imgUri = Uri.fromFile(file);
imagepath = file.getAbsolutePath();
Intent cameraIntent = new Intent(
android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
cameraIntent.putExtra(MediaStore.EXTRA_OUTPUT, imagepath);
mActivity.startActivityForResult(cameraIntent, CAMERA_REQUEST_CODE);
}
so they are in a separate class and I dont know how to use EXTRA_OUTPUT please help me and thank you
EDIT:
I call photo.class
by using
photo.openCamera(); on Main Class