@ Deprecated public void addResolveInfoForIntent ( Intent intent , ResolveInfo info ) { info . isDefault = true ; ComponentInfo [ ] componentInfos = new ComponentInfo [ ] { info . activityInfo , info . serviceInfo , Build . VERSION . SDK_INT >= KITKAT ? info . providerInfo : null } ; for ( ComponentInfo component : componentInfos ) { if ( component != null && component . applicationInfo != null ) { component . applicationInfo . flags |= ApplicationInfo . FLAG_INSTALLED ; if ( component . applicationInfo . processName == null ) { component . applicationInfo . processName = component . applicationInfo . packageName ; } } } if ( info . match == 0 ) { info . match = Integer . MAX_VALUE ; // make sure, that this is as good match as possible. } addResolveInfoForIntentNoDefaults ( intent , info ) ; }
Adds extra resolve info for an intent .