Tuesday, July 12, 2011

[android-developers] Re: Starting other apps - finding the activity name

Thanks much, I'll look at this when I'm back in town this weekend. My
app is a turnkey app in "kiosk" mode, so the user doesn't have access
to anything but my app. But they threw me a curve the other day and
said that they'd want a page with buttons for several games that they
could launch from within my app.

In addition, I'll need them to pull up the wireless settings page from
within the app.

Thanks again,
Jon

On Jul 11, 10:36 am, Mark Murphy <mmur...@commonsware.com> wrote:
> On Sat, Jul 9, 2011 at 1:11 PM, JonnyG <jongre...@gmail.com> 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...
>
> 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/commonsguyhttp://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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment