Is it possible to print available Intents installed on phone?

by Eric » Thu, 19 May 2011 07:56:46 GMT


Sponsored Links
 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?   I fooled
around a bit with PackageManager, but it only seems to report on
system-level intents, not installed applications.

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.  I see there's an 'openintents' website, but I'm wondering if
it's possible to check a given phone for available intents?

-- 



Re: Is it possible to print available Intents installed on phone?

by Mark Murphy » Thu, 19 May 2011 08:07:43 GMT


 


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


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 .


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


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 

-- 


Sponsored Links


Re: Is it possible to print available Intents installed on phone?

by Eric » Thu, 19 May 2011 08:20:30 GMT


 Thank you.

-- 



Re: Re: Is it possible to print available Intents installed on phone?

by Dianne Hackborn » Thu, 19 May 2011 09:26:40 GMT


 Note there is not really a concept of "published intents."  An app describes
intent filters, which match intents.  An intent filter is not an intent --
it is a rule for matching intents.  It generally matches an arbitrary number
of intents, and may be used to specify multiple flavors of an intent
together.  They really only provide information given some intent you
already have, asking whether it matches the filter.







-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 



Re: Is it possible to print available Intents installed on phone?

by MarcoAndroid » Thu, 19 May 2011 18:16:52 GMT


 Not programmatically but you can look here for published intents for
apps:  http://www.openintents.org/en/intentstable 
Maybe the app you refer to is in the list. Else, you could maybe ask
the app builder to add their Intents to that site?





-- 



Other Threads

1. Hello Android crashes

I just installed Android (WinXP) for Eclipse (Europa 3.3.2).  I was
following the 'Hello Android' example in the getting started
documentation.  Everything went great until I tried to debug it.  I
saw the emulator come up briefly and then my computer rebooted.  The
compter is a Pentium D 3GHz with 1G of ram.  Eclipse and Android are
installed on an external USB 80G hard drive with 55G available.  Drive
C is a 100G hard drive with 70G available.  I've done a little Java
developing on this setup (I'm primarily a C++/MFC programmer).  Any
guesses?

--~--~---------~--~----~------------~-------~--~----~

2. Parse JSON

Hi....

Can anyone tell me the way I can parse JSON???

Thanks in advance...

--~--~---------~--~----~------------~-------~--~----~

3. Got the MapView loading, but the map is blank?

4. Vote for invitation for "Plusminus" to the HTC/T-Mobile announcement on Sept 23.

5. List<T>

6. Bug in focus handling between WebView and ListView

7. Possible bug in ListPreference