FYI, Android has a handy TextUtils library: http://developer.android.com/reference/android/text/TextUtils.html#isEmpty(java.lang.CharSequence)
<http://developer.android.com/reference/android/text/TextUtils.html#isEmpty(java.lang.CharSequence)> Cheers, James On Tue, Oct 20, 2009 at 2:18 PM, Jeffrey Blattman < [email protected]> wrote: > toString().length() == 0? > > On Oct 20, 2009 1:48 PM, "JasonMP" <[email protected]> wrote: > > > using "if(someEditText.getText().toString == null) " doesnt work > > im passing information from this editText into a database. Ive > already limited it to 2 characters and numbers only in the xml file, > but i need to run a check to fill its defaults to 0 if nothing is > entered. I could set its default to 0, but then my hint text would > show up. Could someone give me a hand with this? > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" 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-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

