On Wed, May 18, 2011 at 7:56 PM, Eric <[email protected]> wrote:
> I installed an app today that I would like to call out to from my app,
> if it turns out the app I installed has a public intent published.  Is
> there a way for me to determine this information, either
> programmatically or through a facility on the system?

You can call queryIntentActivities() or similar methods on
PackageManager to see what responds to a given Intent.

> I fooled
> around a bit with PackageManager, but it only seems to report on
> system-level intents, not installed applications.

queryIntentActivities() and kin support any Intent, AFAIK. If you have
evidence to the contrary, that's probably a bug, so please post a
sample project and symptoms to http://b.android.com.

> In general, I think it would be useful to know all of the public
> Intents installed on a phone, and the data-structure those Intents
> expect.

The latter is impossible; the former is merely not supported.

> I see there's an 'openintents' website, but I'm wondering if
> it's possible to check a given phone for available intents?

No, sorry.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books

-- 
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

Reply via email to