# How to launch Open Camera and save/use captured image in ODK Collect on Android 11

**URL:** <https://forum.getodk.org/t/how-to-launch-open-camera-and-save-use-captured-image-in-odk-collect-on-android-11/34656>\
**Category:** Support\
**Created:** [August 9, 2021, 12:20pm UTC](https://forum.getodk.org/t/how-to-launch-open-camera-and-save-use-captured-image-in-odk-collect-on-android-11/34656 "2021-08-09T12:20:39Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vinia\_Marciano](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/vinia_marciano/32/10972_2.png) [@Vinia\_Marciano](https://forum.getodk.org/u/Vinia_Marciano)\
**Post date:** [August 9, 2021, 12:20pm UTC](https://forum.getodk.org/t/how-to-launch-open-camera-and-save-use-captured-image-in-odk-collect-on-android-11/34656/1 "2021-08-09T12:20:40Z")

</div>

**1. What is the problem? Be very detailed.**  
Android 11 does not allow other camera apps as default camera

**2. What app or server are you using and on what device and operating system? Include version numbers.**  
ODK Collect v2021.2.2 on Android 11

**3. What you have you tried to fix the problem?**  
Reset app preferences

**4. What steps can we take to reproduce the problem?**  
Take picture in ODK Collect on Android 11. And try to set OpenCamera as default camera

**5. Anything else we should know or have? If you have a test form or screenshots or logs, attach below.**  
Android 11 does not prompt user to choose default camera app anymore. It automatically launches the built in camera app. Problem is, our project needs timestamped photos with the project title which we can set on Open Camera

---

<div class="post-metadata">

**Author:** ![danbjoseph](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/danbjoseph/32/21901_2.png) [@danbjoseph](https://forum.getodk.org/u/danbjoseph)\
**Post date:** [August 9, 2021, 3:56pm UTC](https://forum.getodk.org/t/how-to-launch-open-camera-and-save-use-captured-image-in-odk-collect-on-android-11/34656/2 "2021-08-09T15:56:24Z")

</div>

Is this something you might do with a post-collection script? You could pull the image creation date from the metadata using [ExifTool](https://exiftool.org/) and then annotate the image using [ImageMagick](https://legacy.imagemagick.org/Usage/annotating/).

---

<div class="post-metadata">

**Author:** ![Vinia\_Marciano](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/vinia_marciano/32/10972_2.png) [@Vinia\_Marciano](https://forum.getodk.org/u/Vinia_Marciano)\
**Post date:** [August 9, 2021, 4:08pm UTC](https://forum.getodk.org/t/how-to-launch-open-camera-and-save-use-captured-image-in-odk-collect-on-android-11/34656/3 "2021-08-09T16:08:59Z")

</div>

Hi, Dan.

Thank you for your suggestion. However, we visualize the data by connecting our BI tool directly to the Central server via OData so we can provide almost realtime data collection status and results. Post data collection process may delay our reporting.  
But the idea you shared is very much appreciated.

Thanks and cheers,  
Vinia

---

<div class="post-metadata">

**Author:** ![danbjoseph](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/danbjoseph/32/21901_2.png) [@danbjoseph](https://forum.getodk.org/u/danbjoseph)\
**Post date:** [August 9, 2021, 4:29pm UTC](https://forum.getodk.org/t/how-to-launch-open-camera-and-save-use-captured-image-in-odk-collect-on-android-11/34656/4 "2021-08-09T16:29:29Z")

</div>

Could you use [Lightweight timestamping](https://docs.getodk.org/form-logic/#lightweight-timestamping) to record when the image is taken and then in your BI add a text widget underneath the image that shows the relevant details from that form submission for that image?

---

<div class="post-metadata">

**Author:** ![Vinia\_Marciano](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/vinia_marciano/32/10972_2.png) [@Vinia\_Marciano](https://forum.getodk.org/u/Vinia_Marciano)\
**Post date:** [August 12, 2021, 5:09am UTC](https://forum.getodk.org/t/how-to-launch-open-camera-and-save-use-captured-image-in-odk-collect-on-android-11/34656/5 "2021-08-12T05:09:24Z")

</div>

Thank you. We can try that. But the images are usually viewed in gallery/album format. So I don't think this will work for us. But thanks, Dan! Sending you a screenshot in a private message to show you how we present in our dashboard. And why we need Open Camera to work in ODK Collect on Android 11 😃

Cheers,  
Vinia

---

<div class="post-metadata">

**Author:** ![danbjoseph](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/danbjoseph/32/21901_2.png) [@danbjoseph](https://forum.getodk.org/u/danbjoseph)\
**Post date:** [August 12, 2021, 12:45pm UTC](https://forum.getodk.org/t/how-to-launch-open-camera-and-save-use-captured-image-in-odk-collect-on-android-11/34656/6 "2021-08-12T12:45:03Z")

</div>

Sorry, I'm not sure how to make that happen, and yeah Android 11 introduced changes that make it more challenging to use external apps.

---

<div class="post-metadata">

**Author:** ![LN](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/ln/32/1605_2.png) [@LN](https://forum.getodk.org/u/LN)\
**Post date:** [August 12, 2021, 7:16pm UTC](https://forum.getodk.org/t/how-to-launch-open-camera-and-save-use-captured-image-in-odk-collect-on-android-11/34656/7 "2021-08-12T19:16:55Z")

</div>

To be explicit, Android [no longer allows changing default camera apps](https://9to5google.com/2020/08/18/android-11-default-camera-app-changes) and this is not something ODK Collect has any control over.

Some options are:

- train data collectors to open OpenCamera manually, take their picture, then attach it.
- launch OpenCamera from a `text` question using the appropriate [intent appearance](https://docs.getodk.org/launch-apps-from-collect/#launching-external-apps-to-populate-single-fields). There won't be a return value and that's fine -- the goal is just to launch the app. In the next question, have data collectors pick the picture they took and attach it.
- explore whether OpenCamera does or could set `ClipData` when returning to an app that launched it. If so, you can use the [intent appearance](https://docs.getodk.org/launch-apps-from-collect/#launching-external-apps-to-populate-single-fields) on an image question type to launch the camera app and receive an image from it. [Details here](https://github.com/getodk/docs/issues/1386).

---

<div class="post-metadata">

**Author:** ![Vinia\_Marciano](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/vinia_marciano/32/10972_2.png) [@Vinia\_Marciano](https://forum.getodk.org/u/Vinia_Marciano)\
**Post date:** [August 12, 2021, 8:00pm UTC](https://forum.getodk.org/t/how-to-launch-open-camera-and-save-use-captured-image-in-odk-collect-on-android-11/34656/8 "2021-08-12T20:00:41Z")

</div>

Great! Thanks so much for your help, @danbjoseph and @LN!
