[android-developers] Re: Broadcast Receiver issue

2012-02-23 Thread brian lee
So, just so I understand this correctly. I will need two classes, one the broadcastreciever and the other the service. The broadcastreciever will listen for the boot complete to start the service. The service will then listen for the headset broadcast and pass that back to the broadcastreciever cla

[android-developers] Re: broadcast receiver issue

2010-07-23 Thread Kumar Bibek
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 regis

Re: [android-developers] Re: broadcast receiver issue

2010-07-23 Thread Sandeep Phansekar
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. --

Re: [android-developers] Re: broadcast receiver issue

2010-07-23 Thread Agus
no, just declare your receiver in the manifest. On Fri, Jul 23, 2010 at 12:40 AM, Kumar Bibek 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 wrote: >> Hi All, >> >> I am working on one proj

[android-developers] Re: broadcast receiver issue

2010-07-23 Thread Kumar Bibek
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 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. >