Android startService Synchronous?

2019-02-21 07:22发布

问题:

I can't find this anywhere in the documentation:

Is a call to context.startService() synchronous or asynchronous?

回答1:

Asynchronous. It will not even begin doing any work until after you return from whatever callback you are in (e.g., onCreate(), onListItemClick()).