Android how do I wait until a service is actually connected?

前端 未结 7 1911
遇见更好的自我
遇见更好的自我 2020-12-02 12:50

I have an Activity calling a Service defined in IDownloaderService.aidl:

public class Downloader extends Activity {
 IDownloaderService downloader = null;
//         


        
7条回答
  •  一生所求
    2020-12-02 13:29

    I did something similar before, the only different is I was not binding to service, but just starting it.

    I would broadcast an intent from the service to notify the caller/activity about it is started.

提交回复
热议问题