0

I know we can register a broadcast receiver at runtime with registerreceiver() method and then later unregister it with unregisterreceiver() .

I remember reading about a method which will make our receiver the only receiver i.e. only our receiver will receive broadcasts on that particular action . Is there any method like this ?

Also is there a way of knowing if the particular receiver is registered or not ?

Any help is appreciated .

4

1 回答 1

0

您可以使用LocalBroadcastManager哪些注册意图广播并将其发送到进程中的本地对象

于 2013-08-07T02:15:02.557 回答