I have a task, which should happen sequentially. Post-processing it should do few tasks parallelly. I am using BackgroundThread in IntentService. is this a good approach or should I take any other approach?
Asked
Active
Viewed 222 times
1 Answers
1
Sounds like the right solution to me. If you start a background thread for each Intent you will get the parallel behaviour you want. If you are doing a lot of these, you might want to use a ThreadPool as creating Threads is pretty expensive.

David Wasser
- 93,459
- 16
- 209
- 274