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. Android lost file issue

Hi,list!
I have support U disk in my android2.1,but when android boot with udisk
insert in slot,if some files in udisk,will rmdir automatically by Android.

"D/        ( 1015): unable to rmdir -tommy-debug-0519'/udisk/test': Is a
directory (errno=21)"
(./dalvik/libcore/luni/src/main/native/java_io_File.c:
LOGD("unable to rmdir -tommy-debug-0519'%s': %s (errno=%d)\n")

what's going on in this background?

Hope you can reply me ,thanks!

B.R
Tommy


-- 
our psychological growth is the movement from dependence to independence  to
interdependence!

-- 

2. Google Docs Access

My app is mainly self-contained, interacting only with the user's 
databases, and does not use any web or cloud technology to do its thing. 
However, I'd like to add functionality to download database files from 
the user's Google Docs account to make it easier to transfer data.


There are docs online for the required APIs, but it really seems 
complicated and assumes prior knowledge of various web technologies 
(XML, JSON, HTTP headers, etc.) that are outside my realm of knowledge. 
It looks like a very steep learning curve just to perform this basic 
operation: obtain authentication, get a list of available docs to 
display, download selected doc file to the SD card.


Is there anyplace where I can find a tutorial on what I need to know, or 
possibly sample code? My experience in the past is that the 
documentation can make it seem more complex than it actually is: 20 
pages of confusing text, and then you see a sample implementation and 
it's just a couple dozen lines of code!


Any help getting me started on this would be appreciated!

  Doug Gordon
  GHCS Software

--

3. from which API level there have been support for W3C Geolocation API?

4. a wacky workaround to get Nexus One usb driver installed on windows 7

5. help for listview?

6. Job Opportunity NYC

7. Need Help