I was able to get the list of installed application's name in a listview but I'm having problem adding their icons. I have created a new xml layout and included an imageview.
I'm using the following to retrieve the icons
appInfo.icon = p.applicationInfo.loadIcon(getPackageManager());
To load the application info I was using a
HashMap<String,String>.
It is my understanding that I could use a
HashMap<String,Integer>
then just send the drawable Resource ID to the Imageview and it would work.
How can I get the Resource Id of a drawable object?