Friday, July 21, 2017

Android 볼륨키 이벤트

@Override
    public boolean onKeyDown(int keyCode, KeyEvent event) {
        if ((keyCode == KeyEvent.KEYCODE_VOLUME_DOWN)){
            //Do something
        }
        return true;
    }

No comments:

Post a Comment