http://www.anddev.org/viewtopic.php?p=12915

i am using this to create an inputbox.

it works, but i need a validation

i put following code inside onClick method for Yes

                                          String text = 
input.getText().toString().trim();
                                          boolean b1 = (null == text);
                                          boolean b2 = ("" == text);
                                          boolean b3 = (0 == text.length());
                                          if(b1 || b2 || b3) {
                                          }
                                          else {
                                                  d.dismiss();
                                          }

even though it goes to if block, still the inputbox is disappearing, i
need that this should stay till i enter a non empty string.

any helps are thankfully appreciated

regards

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to