I use
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); intent.putExtra(MediaStore.EXTRA_OUTPUT,Uri.fromFile(externalFileObj));
intent to trigger camera activity by default. To get the full image, you need to specify aim.putExtra (). But this always requires a URI that only works for external storage files.
I tried to create a temp.jpg image in internal memory and pass it a URI
Uri.fromFile(new File(getFilesDir() + "/temp.jpg"));
but camera activity will not go back after image capture.
So thereβs no way to get a full-size image from the default camera application in our activity without using external storage? Assuming the device does not have an SD card or is currently in use, there is no way I can avoid using it?
Yes, I know that we can create our own camerapreview surface, but I want to use the default camera application, since it is natural when there are many other options.
Thanks.
Pritam
source share