tags:

views:

53

answers:

2

I'm able to get a list of installed packages using the package manager, but this includes various system packages . Are there any filters i can apply on this list to only show the apps that would show up when bringing up the application list from the home screen?

A: 

You can remove the packages which have PackageInfo.versionName == null. These are system packages.

skyuzo
A: 
boolean nonSystem = (packageInfo.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) == 0;
alex