Basically, I want an EditText in Android where I can have an integer value entered into. Perhaps there is a more appropriate object than EditText for this?
Set the digits attribute to true, which will cause it to only allow number inputs.
Then do Integer.valueOf(editText.getText()) to get an int value out.
Integer.valueOf(editText.getText())