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

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -