Hi all
Im trying to strip all non standard letter characters from an edittext textbox on an android app im making. I am successfully creating a listener, obtaining the value and removing bad chrs via a regex. however, the .setText line below causes the app to crash. Anyone got any ideas how to get around this and dynamically mask certain chrs?
filenameTextBox.addTextChangedListener(new TextWatcher() {
public void onTextChanged(CharSequence s, int start, int before, int count) {
FILENAME=s.toString();
FILENAME = FILENAME.replaceAll("[^a-zA-Z]", "");
filenameTextBox.setText(FILENAME);
} }