Broadcast receiver is triggered automatically on start

后端 未结 1 1714
灰色年华
灰色年华 2021-01-22 06:51

I have a registered BroadcastReceiver in my main activity. Activity sends a sticky in one of the tabs to trigger the broadcast receiver (TabActivity ap

相关标签:
1条回答
  • 2021-01-22 07:22

    Sticky broadcasts are supposed to stay around (even they are received) so that they can be retrieved afterwards too. Perhaps you should try the simple way of broadcasting using:

    sendBroadcast(i);
    

    Read this.

    0 讨论(0)
提交回复
热议问题