I have an EditText that allows the user to enter a filename, and I am
restricting certain characters being used, such as / \ ?, etc.
Currently, I allow the user to enter anything they want, then before
committing the filename, run it through a regexp checking for invalid
characters. If any are
Paul,
You could use an key listener:
http://developer.android.com/reference/android/widget/TextView.html#setKeyListener(android.text.method.KeyListener)
Here is an example for entering IP addresses:
http://kmansoft.wordpress.com/2011/02/27/an-edittext-for-entering-ip-addresses/
Note that the
2 matches
Mail list logo