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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to