Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • what about "Blank" space checking?. An EditText may contain white space. Commented Jun 10, 2013 at 6:49
  • The edittext may contain string values also, chk my code for this exception, which includes your space thing also! Commented Jun 10, 2013 at 6:55
  • This is not the correct way, you can use trim() to overcome the same. Commented Jun 10, 2013 at 7:12
  • You are telling half of the story. What about if any user inputs some string eg. "50 s" ? Commented Jun 10, 2013 at 10:24
  • EditText having property of InputType, so one can bound user to input numbers only. Commented Jun 10, 2013 at 11:12