This looks as though it should do the trick.  Thanks Jason. :-)

Akbur

On 2 Nov, 18:32, "Jason Parekh" <[EMAIL PROTECTED]> wrote:
> Hi Akbur,
>
> You can't "unregister" this receiver, but you can disable it.  Check out
> PackageManager.setComponentEnabledSetting.
>
> jason
>
> On Sun, Nov 2, 2008 at 7:03 AM, Akbur <[EMAIL PROTECTED]> wrote:
>
> > Dear all,
>
> > I've registered my BroadcastReceiver in my application manifest like
> > this:
>
> >    <application android:icon="@drawable/icon" android:label="@string/
> > app_name" android:debuggable="true">
> >        <receiver android:enabled="true" android:name=".SMSReceiver">
> >            <intent-filter>
> >                <action
> > android:name="android.provider.Telephony.SMS_RECEIVED" />
> >            </intent-filter>
> >        </receiver>
> >    </application>
>
> > Suppose I wish to make an Activity which is able to unregister this
> > BroadcastReceiver.  I know there is a method called
> > unregisterReceiver(BroadcastReceiver receiver) however I am not sure
> > how I can pass the correct receiver instance to it?  Has any one done
> > this?  If so, would you care to share? :-)
>
> > Thanks!
> > Akbur
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
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