I have 4 AsyncTask classes in my Fragment. I want to execute all four of them, but one at a time. I have tried things like task.execute().get() and task.execute().getStatus(). These don't seem to work well - I get an error that I can't run another task when a task is running. These are the 4 AsyncTasks I am trying to run: 

```
ProgressDialog dialog = new ProgressDialog(getActivity());
    dialog.setTitle("Finalizing Your Run");
    dialog.setMessage("We hope you had fun running! Please wait while we send your running data to our system. This may take a few seconds depending on your internet connection");
    dialog.setCancelable(false);
    dialog.show();
    //All the async tasks to be executed
    AddRouteCheckpoints checkpointTask = new AddRouteCheckpoints(getActivity(), dialog);
    GetRouteIdTask routeIdTask = new GetRouteIdTask(getActivity(), dialog);
    AddRouteTask addRouteTask = new AddRouteTask(getActivity(), dialog);
    AddRunTask personalRunTask = new AddRunTask(getActivity(), dialog);

```

Is there a way of ensuring each AsyncTask completes its task completely before moving on to the next AsyncTask?