1

Why isn't getText() returning the value I just provided to setText?

mEditText.setText("150");
String text = mEditText.getText().toString(); //result: "6"!
Noumenon
  • 5,099
  • 4
  • 53
  • 73

1 Answers1

0

Answer: There was an InputFilter (example here) that was intercepting input to the EditText.

Community
  • 1
  • 1
Noumenon
  • 5,099
  • 4
  • 53
  • 73