I am looking to turn a BroadcastReceiver on and off. The receiver used
to be turned on in the manifest xml file but i believe there is no way
to turn it off when it is turned on that way.
Instead I am trying to turn it on locally and thereby be able to turn
it off.
I am having a few problems with this.
1. I can't get it working at all. This is the code I have
      BCReceiver localReceiver = new BCReceiver();
      IntentFilter filter = new
IntentFilter("android.provider.Telephony.SMS_RECEIVED");
      context.registerReceiver(localReceiver, filter);

      and it is not working to pick up the sms recieved

2. In the xml file there are about 10 intent filters in the xml file
and i am not sure how to do that in the localReceiver. Do I have to
register it 10 separate times with each separate intent filter?

Thank you very much,
Eli

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