I'm writing an app that does the following:
- Parses a webpage and extracts image URLs from it
- Decodes them to
Bitmap
and shows them in anImageView
I don't want these to run on the UI thread and obviously the 2nd point can't be performed without the 1st being completed.
Can i chain AsyncTasks to achieve this? I mean starting the second one from the first one's onPostExecute()
method.
Is this considered bad practice? If so, how should i do this?
(this is a theoretical question, i'm not asking for code)