Reading a value from a edittext.

0 Evaldas Butkus · August 12, 2015
Hi im struck for few days with such a stupid thing. I need to get integer value from edittext(numeric) and to asign it to variable. And i dont find any function as toInteger. I know its basic but cant find it anythere.

Gratefull for your time and sorry for asking suck basic things.

Post a Reply


Oldest  Newest  Rating
0 Harsh Dalwadi · August 13, 2015
you must have to use parseInt to convert from string value to integer value .
0 Evaldas Butkus · August 14, 2015
Thanks a lot.

This line:
WriteData.Setpointvalue = Integer.parseInt(Setpoint.getText().toString());

Did the job :)
  • 1

Java / Android Development


Very popular language used to create desktop applications, website applets, and Android apps.

Bucky Roberts Administrator