I want to make an application in which I can see all the installed applications on my device. Is it possible to display all the applications in a List View?
If yes then how?
I want to make an application in which I can see all the installed applications on my device. Is it possible to display all the applications in a List View?
If yes then how?
Absolutely! In fact, that's how your home launcher works!
First you need access to the ApplicationInfo, but this information is all distributed via the system's PackageManager.
PackageManager _pm = getPackageManager(); OR PackageManager _pm = context.getPackageManger();
Now, you just ask it for what you want.
List _list = _pm.getInstalledApplications(flags); // Flags can be GET_UNINSTALLED_PACKAGES, GET_SHARED_LIBRARIES, GET_METADATA, or any combination. If you want none of these, just set it to 0.
Now you just take that list and dump it into an Adapter. (Of course, you have to make one for yourself :).
Hope this helps,
FuzzicalLogic