How to send event from Service to Activity with Otto event bus?

后端 未结 7 1726
心在旅途
心在旅途 2020-12-02 05:19

Simple BusProvider.getInstance().post() bring exception not main thread. How to send event from Service to Activity with Otto event bus?

相关标签:
7条回答
  • 2020-12-02 06:16

    bus = new Bus(ThreadEnforcer.ANY); is the clear solution to this problem. Its all you have to do.

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