In App List I needed to get the list of all user installed apps. So I made this little utility function:
public List<PackageInfo> getInstalledPackages() { List<PackageInfo> allPackages = getPackageManager().getInstalledPackages(0); List<PackageInfo> installedPackages = new ArrayList<PackageInfo>(); for(PackageInfo p : allPackages) //parse all packages to remove the ones with "System" flag { if(!((p.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) == ApplicationInfo.FLAG_SYSTEM)) //package is not marked as "System" { installedPackages.add(p); } } return installedPackages; }
I hope this helps.
amaaaaaaaaaaaazing
Will this be in the next release? I would also like to see access to the volume control.
Actually this post was meant for developers 🙂
It’s about my other app – App List.