1. Check out our companion app, Forums for Android! Download from Google Play

KeyListener not working as expected

Discussion in 'Android Apps & Games' started by muralibasani, Apr 9, 2010.

  1. muralibasani

    muralibasani New Member
    Thread Starter
    25

    Mar 23, 2010
    2
    0
    25
    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,
     

    Advertisement

Share This Page

Loading...