2012-09-26

Android Dialog setCanceledOnTouchOutside

After Android ICS, google set Dialog.setCanceledOnTouchOutside default True.
That means your dialog will be auto closed if user touch outside of Dialog boundary area.

If you have problem when android auto close your dialog, you can disable it by calling:
Dialog.setCanceledOnTouchOutside(false);
Please refer to http://developer.android.com/reference/android/app/Dialog.html

No comments: