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
Post a Comment