Android 11 changes how apps can query and interact with other apps.
From the docs:
The
PackageManagermethods that return results about other apps,
such asqueryIntentActivities(), are filtered based on the calling
app’s<queries>declaration.
So you need to declare <queries> in your AndroidManifest.xml:
<manifest package="com.example">
<queries>
<intent>
<action android:name="android.media.action.IMAGE_CAPTURE" />
</intent>
</queries>
...
</manifest>