My onStart()
event looks like this:
protected void onStart() {
super.onStart();
ShowProgressDialog();
Function1(); //this takes a lot of time to compute
HideProgressDialog();
Function2(); //this function uses the values calculated from Function1
}
But the ProgressDialog
wont show.
PS: AsyncTask
is not a good solution for my problem because Function2 needs the values calculated from Function1 and I really dont want to chain 4-5 AsyncTasks
.