Does anybody have a simple code to display a list (list view?) of all the apps installed on a phone, and have the user open one when clicked?
Or even an App drawer. I just need a way to have the user open all of their apps.
I have tried searching for tutorials, but couldn’t find any, and I downloaded the example home from Android, but I absolutely hate looking through code and digging out what I Want.
Have a look at the Home sample application that comes with the SDK.
The basic idea is to use PackageManager to get either
getInstalledPackagesorqueryIntentActivitiesfor an intent with categoryCATEGORY_LAUNCHERand actionACTION_MAINdepending on your use case.