Can bindService() be made to block?

前端 未结 4 892
鱼传尺愫
鱼传尺愫 2021-02-13 15:44

I have an Android application that uses a Remote Service and I bind to it with bindService(), which is asynchronous.

The app is useless until the service is

4条回答
  •  温柔的废话
    2021-02-13 16:10

    bindService() cannot be made to block. That kind of defeats the whole purpose of a Service. You said that you whole UI consists of results from the service. I think you need to rethink your UI and populate it with some kind of intermediate representation that shows the user that the app is gathering data.

提交回复
热议问题