Matisse icon indicating copy to clipboard operation
Matisse copied to clipboard

Camera feature is not working in Android 11

Open ibrahimturna1 opened this issue 4 years ago • 3 comments

As mentioned above, nothing happens when i click on Camera.

Pixel 4 XL API 30

ibrahimturna1 avatar Oct 23 '20 16:10 ibrahimturna1

Have you found a solution to fix this issue?

venkat20390 avatar Nov 25 '20 08:11 venkat20390

You must add queries to your manifest file to be able to open the camera in Android 11. Add the queries after the application at the end like this:

</application>

  <queries>
    <intent>
      <action android:name="android.media.action.IMAGE_CAPTURE" />
    </intent>
  </queries>
  <queries>
    <intent>
      <action android:name="android.media.action.VIDEO_CAPTURE" />
    </intent>
  </queries>

</manifest>

android.media.action.VIDEO_CAPTURE is not needed as it will enable you to capture videos by the camera, i don't think Matisse has an option to capture videos, let me know if it's possible.

waeladel avatar Dec 09 '20 20:12 waeladel

You must add queries to your manifest file to be able to open the camera in Android 11. Add the queries after the application at the end like this:

</application>

  <queries>
    <intent>
      <action android:name="android.media.action.IMAGE_CAPTURE" />
    </intent>
  </queries>
  <queries>
    <intent>
      <action android:name="android.media.action.VIDEO_CAPTURE" />
    </intent>
  </queries>

</manifest>

android.media.action.VIDEO_CAPTURE is not needed as it will enable you to capture videos by the camera, i don't think Matisse has an option to capture videos, let me know if it's possible.

This work for me! Thank you!

KamiLRT-2020 avatar Dec 29 '20 03:12 KamiLRT-2020