I have 3 asynchronous methods:
1 - Update Data
2 - Validate Data
3 - Enter
Currently I have the class as follows:
public void onCreate (Bundle savedInstanceState) {
super.onCreate (savedInstanceState);
setContentView (R.layout.activity_sync);
....
new Update (). execute ();
new Validate () .execute ();
new Enter (). execute ();
}
It is assumed that they all have to execute at the same time however they expect to have an answer from the previous one.
How can I make them all run at the same time without waiting for the previous one to finish?