Im having a little difficulty understanding one rule about IntentServices.
From Creating a Background Service :
Work requests run sequentially. If an operation is running in an IntentService, and you send it another request, the request waits until the first operation is finished.
I dont understand if this implies to different calls to the SAME IntentService, or even to different IntentServices.
Help will be appreciated.
Let's say you start an IntentService
, and it is performing a network request (immediately). You now request the IntentService
to perform another task. This time, instead of immediately performing the network call, it will wait for the previous request to finish if it didn't. This applies for the SAME IntentService
.
If you create another IntentService
it will perform the first request immediately, but not subsequent requests.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With