android How to prevent dialog closed or remain dialog when button is clicked

Posted by yee-chen on Stack Overflow See other posts from Stack Overflow or by yee-chen
Published on 2010-04-12T07:18:29Z Indexed on 2010/04/12 7:23 UTC
Read the original article Hit count: 437

Filed under:

I have a dialog with edittext for input. when i click yes button on dialog, it will validate the input and then close dialog. However, if the input is wrong, i want to remain in the same dialog. every time no matter what input it is, the dialog always automatically close when i click button. How can i disable this.

© Stack Overflow or respective owner

Related posts about android