query Intent Activities
Retrieves all activities that can be performed for the given intent using appropriate API for Android Tiramisu and upwards.
Note: [PackageManager.queryIntentActivities(Intent, int)] has been deprecated starting with [Build.VERSION_CODES#TIRAMISU]. A List of ResolveInfo objects containing one entry for each matching activity, ordered from best to worst. In other words, the first item is what would be returned by Intent.resolveActivity. If there are no matching activities, an empty list is returned.Return
Parameters
file Intent
The desired intent as per Intent.resolveActivity.