We are trying to use the native camera app to let the user take a new picture. It works just fine if we leave out the EXTRA_OUTPUT extra
and returns the small Bitmap image. However, if we putExtra(EXTRA_OUTPUT,...)
on the intent before starting it, everything works until you try to hit the "Ok" button in the camera app. The "Ok" button just does nothing. The camera app stays open and nothing locks up. We can cancel out of it, but the file never gets written. What exactly do we have to do to get ACTION_IMAGE_CAPTURE
to write the picture taken to a file?
Edit: This is done via the MediaStore.ACTION_IMAGE_CAPTURE
intent, just to be clear
to have the camera write to sdcard but keep in a new Album on the gallery app I use this :
Please note that you will need to generate a unique filename every time and replace teh 1111.jpg that I wrote. This was tested with nexus one. the uri is declared in the private class , so on activity result I am able to load the image from the uri to imageView for preview if needed.