This is a suggested re-up on a question I had before. Its really and extension. So I have this code worked out to dial / call a phone number when the volume button (down) is pressed. The rest of the main code (IE: my dial / call intent works just fine) I am having a problem with the following code section:
}{
return super.onKeyLongPress(KeyEvent event);
}}
The terms “KeyEvent” and “Event” are highlighted in red. Is there anyway I can get around this? when everything else has NO issues at all?
use as:
see here public boolean onKeyLongPress (int keyCode, KeyEvent event) method takes two arguments first
keyCodeand secondevent