I was wondering if there is a way to compare strings in android with greater than or >.
Lets say I have this:
String numbers = number.getText().toStr
You'll need to convert the String to a number first. Something like this:
int number = Integer.parseInt(number.getText().toString()); if (number > 9) { output.setText("50"); }
If the String is not guaranteed to be a valid integer you'll have to handle NumberFormatException too.
NumberFormatException