Low resolution image using android.media.action.IMAGE_CAPTURE

Hi @Gilbert

Thanks for your question.

Android returns a thumbnail image (small and low quality) because it doesn’t know where to save it. The output location must be a full path to the folder, ideally in the shared external storage of the phone (where any app can create files).

The problem is that this path can be different depending of the phone’s brand and Android version, so even if you specify a full path output in this form, then some phones might not have that folder and Android will return the thumbnail.

Also, depending of the Android version, you will need to enable the write external storage permission (<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />) in your manifest file. More info in the Android documentation.

In order to ensure that any phone have the output path and can save the full image size, we need to code a solution. I’ve open an issue for prioritisation and research.

An alternative solution that you can do right now is to use the Enketo image picker widget. Please have a look at this form sample. I think it can give the option to get picture from camera or file system.
One more thing, when using this widget, remember to enable this permission in your manifest file: <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>

Cheers,
Jennifer

3 Likes