Got int'l android app, but whitespace characters in several languages are being recorded for things like a username. I need to prevent whitespace (regex: \S), but I can't seem to get TextWatcher implementation to check for them. Do I check each character in the CharSequence that's given? Even then, I can't seem to prevent that char from being entered originally.
In other words, how do I prevent tabs, spaces, carriage returns from being registered as a char input to an edittext.
Thoughts?