Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android R - startActivity of ACTION_IMAGE_CAPTURE shows different options to choose

I'm targeting my app to support 30 (R). I've notice that some apps are missing to choose when calling this:

baseActivity.startActivity(Intent(MediaStore.ACTION_IMAGE_CAPTURE))

When targeting to 29, this code shows several apps to choose before taking the picture:

  • Native camera app
  • B612 Camera app

After targeting to 30, the camera app is being opened directly (no option to choose).

I looked in the android 11 changes but didn't see anything special. Is there anything that needs to be change in my side?

Thanks for reading/helping

like image 431
Udi Oshi Avatar asked Sep 18 '25 17:09

Udi Oshi


1 Answers

Once your targetSdkVersion reaches 30, ACTION_IMAGE_CAPTURE will only display pre-installed camera apps, not user-installed apps.

like image 126
CommonsWare Avatar answered Sep 21 '25 07:09

CommonsWare