I am showing a ProgressDialog using the following code:
void showProccess() {
p = new ProgressDialog(this);
p.setTitle("PleaseWait");
p.setMessage("data loading");
p.show();
}
In Android 2.3.1 when a ProgressDialog is shown, I can’t click on the Activity. But in Android 4.0.3, I click on Activity and the ProgressDialog will exit.
I want the ProgressDialog to not exit, the same as Android 2.3.1.
Can you help me? Thanks.
You should set the following:
By this , progress dialog can not be cancelled.