tags:

views:

43

answers:

0

Has anyone ran into an issue with overriding onKeydown where the system kind of freezes for a second? I ran into this with a custom surfaceView, so I did a small test. I created a super simple activity with a counter that just updates a textview:

int count = 0;

@Override
public void onKeyDown(int keyCode, KeyEvent event) {
    count++;
    // Output count to a textview control. 
}

If you try that out, and hold any key, you'll see the textview update, then nothing for a second, and it'll catch back up.

Thanks for any input.