Issue in android list -


i have list view , listening using key listener keycode_5. issue facing whenever press 5, function onkey() (inside listener) called twice. idea?

could not checking wether the event fired keyup or keydown?

if need catch event keydown create eventhandler this:

public boolean onkey(view v, int keycode, keyevent event) {     // if event key-down event on "5" button     if ((event.getaction() == keyevent.action_down) &&         (keycode == keyevent.keycode_5)) {       // perform action on key press       // event code goes here       return true;     }     return false; } 

Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -