It basically means that though both starting an Activity and a
BroadcastReceiver respond to Intents, neither can react to each
other's specific Intents. An Activity will only respond to the Intent
that is sent with a call to Context.startActivity(), while a
BroadcastReceiver listens to system wide event Intents, like a change
in network reception.

By my knowlidge you could start an Activity from a broadcast, as
Context.startActivity() sends an Intent to the OS that you requested
the start of a specific Activity.

On 10 jun, 11:29, souissi haythem <[email protected]> wrote:
> Hi,
> Please i wanna start my activity, when i my broadcast is received.
>
> I found this in android.com:
> Note that, although the Intent class is used for sending and receiving
> these broadcasts, the Intent broadcast mechanism here is completely
> separate from Intents that are used to start Activities with
> Context.startActivity(). There is no way for a BroadcastReceiver to
> see or capture Intents used with startActivity(); likewise, when you
> broadcast an Intent, you will never find or start an Activity. These
> two operations are semantically very different: starting an Activity
> with an Intent is a foreground operation that modifies what the user
> is currently interacting with; broadcasting an Intent is a background
> operation that the user is not normally aware of.
>
> I don't understand this?
> did they mean that i can't lunch an activity from broadcast???
>
> Thanks

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