java - What can I use for user to input time and Converting a value from an EditText to an Integer -
1) want time value user ,time in amount of time in hours, minutes , seconds, without using edittext field. want use timepicker without , pm stuff. minutes , seconds. know can use?
2) want convert value edittext field integer use later in code ie perform operation multiplication. , tried parse , doesn't work. instead shows error. , i've seen code parsing long , figure similar operation. here's code :
mins=(edittext)findviewbyid(r.id.edittext2); secs=(edittext)findviewbyid(r.id.edittext3); timehours = int.parseint(hours.gettext().tostring());
try this
timehours = integer.parseint(hours.gettext().tostring());
instead of
timehours = int.parseint(hours.gettext().tostring());
Comments
Post a Comment