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"
I hope this helps.
So I just released a new app – it’s called simple: App List.
You can check it out now here (Browser link):
App List on Google Play
or here (Android link):
App List on Play Store for Android
You can use it to quickly share some apps you like with your friends (via Facebook, Twitter, Google+, Gmail or whatever sharing app you have installed on your Android device). Also, you can filter/search your installed apps list, view details about each one, open them or open the corresponding Google Play Store page (if any).
I implemented this one to familiarize myself with other Android topics. I’ll post a tutorial about what I’ve found out soon.