I want to create an android code that can retrieve all installed apps in my device and display them with icons in a good format. How do I display the list of apps installed in the system with a good layout?
Asked
Active
Viewed 85 times
-1
-
1What did you try so far? Where exactly do you encounter issues with your implementation? – cygery May 23 '15 at 19:22
-
Have you tried anything at all? This is extremely easy and is covered in almost any examples of PackageManager anywhere. – Nick Cardoso May 23 '15 at 19:25
2 Answers
1
You might need to learn about
ListView
: http://developer.android.com/guide/topics/ui/layout/listview.htmlTo get a list of all installed apps, you can follow this link: How to get a list of installed android applications and pick one to run
Try putting the list of all apps in your
ListView
To get app icon, after you get the list of all apps, you will also get their package names - follow this link: How can I get the application's icon from the package name?

Bondolin
- 2,793
- 7
- 34
- 62

Sruit A.Suk
- 7,073
- 7
- 61
- 71
0
Use PackageManager
to get all details of installed packages
PackageManager packageManager = getPackageManager();
List apps = packageManager.getInstalledApplications(PackageManager.GET_META_DATA);

Harsh Dattani
- 2,109
- 1
- 17
- 27