title: Intent action to write in manifest for resolveActivity in API 30
body: <p>The app needs to let the user pick a contact and take a picture. I'm checking if the user has an app that can handle those actions. I understand that you have to specify package visibility in the manifest file, but for the contacts, I don't know what exactly I have to write in the manifest. I thought that &quot;android.intent.action.PICK&quot; would be it but it isn't.</p>
  <p>This is the code causing trouble</p>
  <pre><code>val packageManager: PackageManager = requireActivity().packageManager
  val resolvedActivity: ResolveInfo? = packageManager.resolveActivity(
      pickContactIntent,
      PackageManager.MATCH_DEFAULT_ONLY
  )
  
  if (resolvedActivity == null) {
      isEnabled = false
  }
  </code></pre>
  <p>This is what I have in the manifest</p>
  <pre><code>&lt;queries&gt;
      &lt;intent&gt;
          &lt;action android:name=&quot;android.media.action.IMAGE_CAPTURE&quot; /&gt;
      &lt;/intent&gt;
      &lt;intent&gt;
          &lt;action android:name=&quot;android.intent.action.PICK&quot; /&gt;
      &lt;/intent&gt;
  &lt;/queries&gt;
  </code></pre>