android - How to run AsyncTasks Sequentially -


i have 3 asynctasks on insert data activity.

the first 1 saves data database. second 1 uploads item's picture. third 1 uploads user's picture

when user clicks submit button, first asynctask run, , when done, second asynctask run, , when done third asynctask run.

when they're finished, toast appear says "your data has been submitted"

how make asynctasks run sequentially that?

the onpostexecute callback in asynctask called ui thread, can start new asynctask there next step.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -