I want to basically create an application launcher. How do do this?
Shouldn't the following just work?
PackageManager pm = this.getPackageManager();
List<ApplicationInfo> appList = pm.getInstalledApplications
(0);
Intent i = new Intent();
i.setAction(appList.get(15).packageName);
i.setClassName(appList.get(15).packageName, appList.get
(15).className);
startActivity(i);
It just crashes and I don't know why.
Brenton
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---