Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android startService Synchronous?

I can't find this anywhere in the documentation:

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

like image 211
yydl Avatar asked Feb 22 '11 23:02

yydl


1 Answers

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

like image 126
CommonsWare Avatar answered Sep 18 '22 20:09

CommonsWare