On Sat, Jul 9, 2011 at 1:11 PM, JonnyG <[email protected]> wrote: > I see a lot of posts about starting other apps, and I've got code to > do that for my apps. How do I find out the activity name of another > app?
Ideally, you don't. > For example, I've got a request to add buttons to my app to > start angry birds, or some other app. You can get a list of launchable activities via PackageManager and queryIntentActivities(), supplying an Intent that specifies ACTION_MAIN and CATEGORY_LAUNCHER. Here is a sample project demonstrating this: https://github.com/commonsguy/cw-advandroid/tree/master/Introspection/Launchalot You can use this to display a list of activities for the user to choose from, which you can then launch, or save to associate with some button. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 3.5 Available! -- 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

