1. Introducing Channels - a new way to chat with other Android users!
    Dismiss Notice

KeyListener not working as expected


Last Updated:

  1. muralibasani

    muralibasani New Member This Topic's Starter

    Joined:
    Mar 23, 2010
    Messages:
    2
    Likes Received:
    0
    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...