Overriding Volume Button : Android

edited October 2015 in Android Mode

Hello, I wanted to override the normal function of 'VOLUME_DOWN' keycode with my own thing. I am using this :

void keyPressed() { if( key == CODED && keyCode == android.view.KeyEvent.KEYCODE_VOLUME_DOWN ) { voldown(); \\my stuff } }

While doing this I am seeing that my function voldown() as well as normal android volume slider decrement is executing.

Answers

Sign In or Register to comment.