I have read one post about Android services within threads but there is one thing that I did not understand. In the post the writer uses a custom service because it allows multitasking while IntentService does not.
https://guides.codepath.com/android/managing-threads-and-custom-services#custom-services
Until there everything is okay, but later the writer uses a HandlerThread
which just allow one thread, as my point of view there is no difference between this and a normal IntentService.
Am I right? or is there anything that I am missing? I am looking at this due I want to create a android service able to run different tasks at the same time, should I use ThreadPoolExecutor
instead HandlerThread
?