[android-developers] Removing/Blocking keys from virtual keyboard possible?

2011-03-25 Thread Paul
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

Re: [android-developers] Removing/Blocking keys from virtual keyboard possible?

2011-03-25 Thread Kostya Vasilyev
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