I am trying to use the android:inputType="numberPassword" and it is not working. The numbers still appear in the EditText. This only happens when I add TextWatcher to switch to next EditText after entering in the first.
public void onTextChanged(CharSequence s, int start, int before, int count) {
// TODO Auto-generated method stub
if (ps1.getText().hashCode() == s.hashCode()) {
ps1.clearFocus();
ps2.requestFocus();
ps2.setCursorVisible(true);
} else if (ps2.getText().hashCode() == s.hashCode()) {
ps2.clearFocus();
ps3.requestFocus();
ps3.setCursorVisible(true);
} else if (ps3.getText().hashCode() == s.hashCode()) {
ps3.clearFocus();
ps4.requestFocus();
ps4.setCursorVisible(true);
}
}
What can I do to make this work properly?