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 resize the taken photo image?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答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.