I want to create an android code that can retrieve installed apps in device and display them with icons in a good format
I want to create an android code that can retrieve installed apps in device and display them with icons in a good format
How to display the list of apps installed in the system with a good layout.
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
2
you might need to learn about ListView:
http://developer.android.com/guide/topics/ui/layout/listview.html
to get list of all installed app, you can follow this link: How to get a list of installed android applications and pick one to run
tried put all app list in your ListView,
to get app icon, after you get all the app list, you will also get their package name, follow this link:
How can i get the application's icon from the package name?
Use PackageManager
to get all details of installed packages
PackageManager
packages
PackageManager packageManager = getPackageManager();
List apps = packageManager.getInstalledApplications(PackageManager.GET_META_DATA);
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
What did you try so far? Where exactly do you encounter issues with your implementation?
– cygery
May 23 '15 at 19:22