Even if you declare the receiver in the manifest, you have to register
that receiver in each of your activities if you want to receive
specific intents. Declaring only in the manifest just ensures that
your receiver gets called, but it wont pass on that broadcast to your
Activities unless you register for those events.

-Kumar Bibek
http://tech-droid.blogspot.com

On Jul 23, 2:26 pm, Sandeep Phansekar <[email protected]>
wrote:
> thanks All  [?]
> @Agus : can u plz expalin me how to do that
>
> in my project there are 5 classes
> --> 4 class file extend *Activity* -- mainly they display user interaction
> screen
> --> 1 class file extends *BroadcastReceiver -- *capture the incomming call
> and display/ launch the one of the activity.
> --> if one of the Activity class Screen is open and call is come then at
> that point BroadcastReceiver* *is fail to launch the activity
>
> so how i do this ?
>
> thanks
> sandeep
>
> On Fri, Jul 23, 2010 at 1:13 PM, Agus <[email protected]> wrote:
> > no, just declare your receiver in the manifest.
>
> > On Fri, Jul 23, 2010 at 12:40 AM, Kumar Bibek <[email protected]>
> > wrote:
> > > You have to register the receivers in each of the activities.
>
> > > -Kumar Bibek
> > >http://tech-droid.blogspot.com
>
> > > On Jul 23, 11:12 am, Sandeep <[email protected]> wrote:
> > >> Hi All,
>
> > >> I am working on one project where i am using broadcast receiver in one
> > >> of my activity to capture the incomming call and its works fine.
> > >> when one of my other activity is open and that time if call is come
> > >> then my broadcast receiver is fail to respond.
> > >> can any one help me for this ?
> > >> or its nessesorry to declare broadcast receiver in all my activity to
> > >> do some comman task.
>
> > >> thanks & regards
> > >> sandeep
>
> > > --
> > > 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]<android-developers%[email protected]>
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> > --
> > 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]<android-developers%[email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
>
>
>  330.gif
> < 1KViewDownload

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