I would like to use the onKeyDown event to react to hardware buttons on my phone. So I added the following to my class:
@Override public boolean onKeyDown (int keyCode, KeyEvent event) ... But this gives me the following compiler error:
"The method onKeyDown(int, KeyEvent) of type MyClass must override or implement a supertype method"
Does anyone have an idea of how to fix this? Thanks!