On Thu, Mar 19, 2009 at 10:29 AM, Hans <[email protected]> wrote:

> What "don't"?  If the receiver is in my service, it's going to my
> service - just via the receiver.  Or are you saying that if my service
> contains a broadcast receiver, which registers for broadcasts when the
> service starts up, it won't receive broadcasts?  That doens't sound
> right.


No, I am saying that the broadcast is going to to the receiver you
registered.  It doesn't matter whether it was a service, activity, content
provider, or application that registered.  The service is not receiving the
broadcast, it's the BroadcastReceiver that is receiving it.  The service is
irrelevant for who will receive it.


> The problem is that this IS the message system for Android.


Not really.  Message/Handler is the messaging system.  But this is mostly
used for internal implementation of application.

Intent et al is a component model.  Android basically isn't a message-based
system.  Most of its design is oriented around interactions between
components, with Intent and Uri being the primary languages for that.  As an
analogy, think of the difference between Win32 and COM.

I think the only thing I've found missing from the framework point of
> view is that PACkAGE_ADDED doesn't get sent to the newly installed
> package.


Yes that is intentional. :}


> Android is extraordinary, thank you for all the hard work :).


Thanks!  I hope things are making a little more sense.

-- 
Dianne Hackborn
Android framework engineer
[email protected]

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

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