I want to schedule or queue for multiple AsyncTask to run in the background. I have an AsyncTask request for an HTTP post that works in a service. At the same time, I am making another HTTP request in the AsyncTask UI thread.
UI thread takes too long to execute because one thread is already running in the service. How to solve this problem?
I need to pause the service flow, and I want to start the UI thread first, and then restart the service thread for AsyncTask again.
Thank you in advance
source share