0

My problem is when dialog box is showing at that time may i click outside the dialog box, at that time my dialog box is dismissed automatically. What can i do. Please send answers with code. Thanks.

Bala
  • 445
  • 5
  • 11
  • 26
  • 5
    Here is an [answer with code](http://stackoverflow.com/questions/8384067/how-to-dismiss-the-dialog-with-click-on-outside-of-the-dialog). – Cat Jun 19 '12 at 05:32

1 Answers1

5

Hi this line is used to dismiss dialog Box.

dialog.setCanceledOnTouchOutside(true);

This line is is used for does not dismiss dialog Box.

dialog.setCanceledOnTouchOutside(false);
Jahir
  • 552
  • 4
  • 9
  • 17