0
有沒有辦法通過使用PackageManager.GET_INTENT_FILTERS選項獲得應用程序支持的意圖過濾器?因爲我找不到返回packageinfo實例的方法?如何使用PackageManager.GET_INTENT_FILTERS獲取Intent過濾器
List<ResolveInfo> launchables=pm.queryIntentActivityOptions(this.
getComponentName(),
new Intent[]{intent1},intent2,
PackageManager.GET_INTENT_FILTERS);
for(ResolveInfo lauchable : launchables){
ActivityInfo activity=launchable.activityInfo;
ComponentName name=new ComponentName(activity.applicationInfo.packageName,
activity.name);
IntentFilter filter = launchable.filter;
PackageInfo info = launchable.//i can't find a method that return
//PackageInfo instance in this lauchable.
}