Start IntentService from Activity and refresh Activity when IntentService is finished

后端 未结 5 1124
-上瘾入骨i
-上瘾入骨i 2020-12-08 05:04

In my Android application, I have a simple list view with adapter. There\'s a heavy query which is to fill the list view with data. So I put it to an IntentService that runs

5条回答
  •  伪装坚强ぢ
    2020-12-08 05:29

    I think the event bus is the way to go. Simple and effective interprocess communication.

    • http://square.github.io/otto/
    • https://github.com/greenrobot/EventBus

提交回复
热议问题