• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

KeyListener not working as expected

Hello All,
I am trying to implement a basic program.

I have a EditText view, and want to set a KeyListener to it.

Here is the code below.

myText.setOnKeyListener(new View.OnKeyListener() {

public boolean onKey(View view,int keyCode,KeyEvent ke)
{
Log.d(TAG,
 
Back
Top Bottom