Intent to take photo with better resolution?
My app is using开发者_开发百科 this Intent to take photos:
startActivityForResult(new Intent(MediaStore.ACTION_IMAGE_CAPTURE),
TAKE_PICTURE);
But the resolution is really low...
Is there any way to improve the resolution? or I have to create my own Camera Activity?
According to http://developer.android.com/reference/android/provider/MediaStore.html this is behavior by design.
The caller may pass an extra EXTRA_OUTPUT to control where this image will be written. If the EXTRA_OUTPUT is not present, then a small sized image is returned as a Bitmap object in the extra field. This is useful for applications that only need a small image. If the EXTRA_OUTPUT is present, then the full-sized image will be written to the Uri value of EXTRA_OUTPUT.
You probably need to pass some extra data with the intent to specify the size you want. For example, EXTRA_SIZE_LIMIT sounds like it might work. I haven't tried it though.
精彩评论