Although I have not tried it yet, but from theoretical point of view I'm asking this question just to clear my doubts.
I have a scenario like:
1. Send a request to a server and receive JSON
response. For this I'm using AsyncTask
as there can be delay in receiving response.
2. From this response fetch an image URL.
3. Using one more AsyncTask
, call the image URL and fetch the image. (Again may take time to fetch image)
So do you think using of 2 AyncTask just to get that image is inefficient. OR, in step 1, instead of using AsyncTask, run the code sequentially and set Timeout instead.
Please suggest.