I have a custom dialog which have 2 progress bars and a button on it.
I am showing this dialog in onPreExecute ()
of an AsyncTask and dissmissng it onPostExecute()
the problem is that when ever i touch screen during the operation the dialog dissmiss. I want it to only dismiss when cancel button on dialog is pressed or downloading files is complete.
Asked
Active
Viewed 2,912 times
5

AddyProg
- 2,960
- 13
- 59
- 110
2 Answers
2
To nr4bt's answer: set it when you declaring your custom dialog in activity or etc
inActiveFragment = new InactiveDialogFragment();
inActiveFragment.setCancelable(false);

Penzzz
- 2,814
- 17
- 23