android - IntentService parallel execution -


The following, I have a doubt.

In our application, I have 2 intentions that automatically start after boot, i.e.

   & Lt; Category android: name = "android.intent.category.HOME" /> & Lt; / Intent-Filter & gt; & Lt; / Receiver & gt; & Lt; Receiver Android: name = ". InterntService2" & gt; & Lt; Intent-Filter & gt; & Lt; Action Android: name = "android.intent.action.BOOT_COMPLETED" /> & Lt; Category android: name = "android.intent.category.HOME" /> & Lt; / Intent-Filter & gt; & Lt; / Receiver & gt; & Lt; / Application & gt;  

Now, does this mean that IntentSerive2 will only be executed only after the Intent Service 1 expires?

Or both services 1 & amp; 2 can be executed equally?

In the manifestation you have 2 BroadcastReceiver s, not 2 < At the code> service s boot, Android will call each of these BroadcastReceiver s to the onReiveive () method since onReiveive () The method runs on the main thread, it is not possible to be called in parallel, so one will be called and then the other will be called. The call order is not defined on onReceive () (as far as I know).


Comments