Start Broadcast Receiver from an activity in android

后端 未结 4 697
我在风中等你
我在风中等你 2020-12-09 04:04

I would like to start a broadcast receiver from an activity. I have a Second.java file which extends a broadcast receiver and a Main.java file from which I have to initiate

4条回答
  •  星月不相逢
    2020-12-09 04:31

    Check this answer:

    https://stackoverflow.com/a/5473750/928361

    I think if you don't specify anything in the IntentFilter, you need to tell the intent the receiver class.

提交回复
热议问题