EditText with number input only returns 0 as string

view story

http://stackoverflow.com – I have an EditText that only accepts numerical input and I am using the following code to turn that input to a string so I can use it later. scoreString = Integer.parseInt(TeamScore.getText().toString()); The problem is... when I use a setText(), it only says "0" in: previewText.setText( scoreString + " :"); Why won't the integer say what the user put in the edittext? (HowTos)