public void overrideButton(String button,boolean override){
  LOG.i("App","WARNING: Volume Button Default Behavior will be overridden.  The volume event will be fired!");
  if (button.equals("volumeup")) {
    webView.setButtonPlumbedToJs(KeyEvent.KEYCODE_VOLUME_UP,override);
  }
 else   if (button.equals("volumedown")) {
    webView.setButtonPlumbedToJs(KeyEvent.KEYCODE_VOLUME_DOWN,override);
  }
}

public void overrideButton ( String button , boolean override ) { LOG . i ( "App" , "WARNING: Volume Button Default Behavior will be overridden.  The volume event will be fired!" ) ; if ( button . equals ( "volumeup" ) ) { webView . setButtonPlumbedToJs ( KeyEvent . KEYCODE_VOLUME_UP , override ) ; } else if ( button . equals ( "volumedown" ) ) { webView . setButtonPlumbedToJs ( KeyEvent . KEYCODE_VOLUME_DOWN , override ) ; } }
override the default behavior of the android volume buttons . if overridden , when the volume button is pressed , the " volume [ up | down ] button " javascript event will be fired .
