Quantcast
Channel: Android Mode - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 941

Overriding Volume Button : Android

$
0
0

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.


Viewing all articles
Browse latest Browse all 941

Trending Articles