service – Android startService Synchronous?-ThrowExceptions

Exception or error:

I can’t find this anywhere in the documentation:

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

How to solve:

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

Leave a Reply

Your email address will not be published. Required fields are marked *