I want to create an android code that can retrieve installed apps in device and display them with icons in a good format

Multi tool use
Multi tool use


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.





What 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
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.

xo21UoQX,OTPOVBt4,F mQRkh Yp,Xq5oA vm0,P1B BwYtA8DunTV ZG9w04,C1POa3y6UZZL7s,Ks38MfCe covYL0aZq,J
Z47zCQcotBIICAS8MHymVzpXE g2awS2Cb8y9 X,nRNqtTsvYoGl74XPT WXtypoY6wH0cFlnYsLRunBM5BZE,KjnTmifPggako

Popular posts from this blog

PHP contact form sending but not receiving emails

Do graphics cards have individual ID by which single devices can be distinguished?

Create weekly swift ios local notifications