Another question is about how can I get the vendor information of an
application by 1.5 sdk, thanks a lot!

2009/11/25 Zhihong GUO <[email protected]>

> Hi all,
>
> I just found that when I use the 
> getInstalledApplications<http://developer.android.com/reference/android/content/pm/PackageManager.html#getInstalledApplications(int)>
>  of
> PackageManager, I can't get all of the applications installed. The code as
> below:
>
>
> PackageManager pm = context.getPackageManager();
> Intent mainIntent = new Intent(Intent.ACTION_MAIN, null);
>  mainIntent.addCategory(Intent.CATEGORY_LAUNCHER);
> List<ResolveInfo> appList = pm.queryIntentActivities(mainIntent, 0);
>
> Collections.sort(appList, new ResolveInfo.DisplayNameComparator(pm));
> int count = appList.size();
>
>
> it seems that the code above doesn't return some of the applications
> installed from SD.  Why?
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to