开发者

How to invoke a broadcast receiver inside a background activity

开发者 https://www.devze.com 2023-04-05 14:47 出处:网络
I have a broadcast receiver declared inside an activity which is in background.I want this broadcast receiver to receive a message which i send from another foreground activity.I know that the activit

I have a broadcast receiver declared inside an activity which is in background.I want this broadcast receiver to receive a message which i send from another foreground activity.I know that the activity should have been executed atleast once to register the broadcast receiver but that is not possible in my case.In my case that activity would have never been executed but still i want the broadcast receiver inside the activity t开发者_运维技巧o receive the message sent from other activity.Pls let me know if there is any way of doing it?

0

精彩评论

暂无评论...
验证码 换一张
取 消