Skip to content Skip to sidebar Skip to footer

Android Taking Picture By Mediastore.action_image_capture - Specifying Image Size

Is is possible to pass via Intent target image size to camera when using MediaStore.ACTION_IMAGE_CAPTURE Intent and starting activity with this intent? Or do I have to manually res

Solution 1:

There is only one extra parameter with this intent which is extra_output (where the image will be stored) as compared to the video_capture intent which has size, quality etc. So not possible.

On the other hand you can use the camera class instead to capture the photo which gives you much greater control over camera and its settings but requires more work to implement. There is a good tutorial about its use on the android developer website.

Post a Comment for "Android Taking Picture By Mediastore.action_image_capture - Specifying Image Size"