Monday, August 1, 2011

[android-developers] Re: Validation on input dialog box

I don't know what 'phNo' is, but your dialog should not be closed when clicking the positive (OK) button.
Only when you call dialog.dismiss() the dialog should close the and dismiss the dialog. This means putting 'dialog.dismiss()' in the 'then' section and not doing anything in the 'else' section'.

I'm not sure, but did you try to call 'setCancelable(false)' when creating the dialog? Maybe this could prevent automatic closing of the dialog.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment