I have a pretty easy problem to solve but I can't see any tutorials on internet to help me. Because this problem is pretty basic I think I don't use the right keywords for my search.
My problem is that I parse an EditText
with a method and use this method to feed the values of a graph:
public int getSetPoint(){
int setPointRequest = Integer.parseInt(txtSetPoint.getText().toString());
if (setPointRequest > 90 && setPointRequest < 120);
return setPointRequest;
// ...
}
I would like to parse the value only if setPointRequest()
has the values between 91
and 119
and after the user press Enter on the keypad. When the user is prompted to enter a value only numbers are shown on the keypad already.
Currently all the values that the user inputs even if he doesn't hit Enter are registered on the graph.
Thanks for your help! Math