It is implicitly started to determine whether a matching Intent exists and to determine whether a matching intent exists.
1. resolveActivity of PackageManager
Public abstract ResolveInfo resolveActivity (Intent intent, int flags );
GetPackageManager (). resolveActivity ();
Returns the Intent that can be matched. If it cannot be matched, NULL is returned,
Ii. queryIntentActivities of PackageManager
Public abstract List <ResolveInfo> queryIntentActivities (Intent intent, int flags );
GetPackageManager (). queryIntentActivities (intent, PackageManager. MATCH_DEFAULT_ONLY );
Returns information about all successfully matched activities.
Iii. Intent resolveActivity
Public ComponentName resolveActivity (PackageManager pm)
Intent intent = new Intent (); ComponentName componentName = intent. resolveActivity ();
The first parameter represents Intent.
Second parameter: Set PackageManager. MATCH_DEFAULT_ONLY