On Wednesday, 16 May 2012 15:58:25 UTC+2, Mark Murphy (a Commons Guy) wrote:
>
>
>
> Also, AFAICT, a BroadcastReceiver registered via registerReceiver() is 
> always exported, insofar as you cannot put something in the 
> registerRecevier() call or IntentFilter to say "please, I only want 
> local broadcasts". On the plus side, with LocalBroadcastManager, we 
> can start moving away from using registerReceiver() for purely private 
> stuff. 
>
>
>
Am I wrong thinking that since that receiver would not be declared in the 
manifest, noone would know about it anyway ?

Here's some examples I wish were possible:

Suppose I make an app able to handle (play) http audio steams 
(action=ACTION_VIEW, mimeType=audio/*).
I'd really like to know which apps send this intent. Why ? So I can 
advertise them to users for added functionality, hence adding value to my 
app (and to the emitting app).
Except  for a few apps that I know send this intent, I have no idea of 
other potentially very useful apps doing the same.

Another example. I write an app handling a list of images. I'd like to find 
another app able to display a *list* of images. Impossible, 
unless getting every image viewer app and looking at their regenerated 
manifest for the Intents they declare.

Finally another example: some apps provide open (app-specific) APIs through 
Intents. When I mean open, I mean that receivers are knowingly exported for 
public use.
It is impossible to find out about these APIs unless you know about 
them...or you find them by luck looking at regenerated manifest xml from 
APK like it happened to me recently.

And  think what can be done with a gigantic Intent metadata databse: app 
recommendations.
 
I'm quite certain someone at Google already thought of all this and what 
could be done with Intent metadata. 

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