Search code examples
androidandroid-camera-intentandroid-11

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


Solution

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