1

android EditText value

view story
linux-howto

http://stackoverflow.com – I have the weirdest problem... all I am trying to do is to get the value from a EditText and do some validation. The value in the edittext must be between 1 and 10. However, even if I enter any number between 1 or 10 , it still validates false. I even tested the edittext input to make sure it is correct , and it is, but the if still fails . Any ideas ? here is the code: ed = (EditText) dialog2.findViewById(R.id.ed_quantity); Button bq = (Button) dialog2.findViewById(R.id.alert_a); dialog2.setCancelable(false); (HowTos)