List of usage examples for android.view KeyEvent KEYCODE_3D_MODE
int KEYCODE_3D_MODE
To view the source code for android.view KeyEvent KEYCODE_3D_MODE.
Click Source Link
From source file:freed.cam.ActivityFreeDcamMain.java
@Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (activityIsResumed) { Log.d(TAG, "KeyCode Pressed:" + keyCode); int appSettingsKeyShutter = 0; if (getAppSettings().getApiString(AppSettingsManager.SETTING_EXTERNALSHUTTER).equals(StringUtils.VoLP)) appSettingsKeyShutter = KeyEvent.KEYCODE_VOLUME_UP; else if (getAppSettings().getApiString(AppSettingsManager.SETTING_EXTERNALSHUTTER) .equals(StringUtils.VoLM)) appSettingsKeyShutter = KeyEvent.KEYCODE_VOLUME_DOWN; else if (getAppSettings().getApiString(AppSettingsManager.SETTING_EXTERNALSHUTTER) .equals(StringUtils.Hook) || getAppSettings().getApiString(AppSettingsManager.SETTING_EXTERNALSHUTTER).equals("")) appSettingsKeyShutter = KeyEvent.KEYCODE_HEADSETHOOK; if (keyCode == KeyEvent.KEYCODE_3D_MODE || keyCode == KeyEvent.KEYCODE_POWER || keyCode == appSettingsKeyShutter || keyCode == KeyEvent.KEYCODE_UNKNOWN || keyCode == KeyEvent.KEYCODE_CAMERA) { cameraFragment.GetModuleHandler().DoWork(); return true; }/*from w w w. j a va 2 s .c o m*/ if (keyCode == KeyEvent.KEYCODE_BACK || keyCode == KeyEvent.KEYCODE_HOME) { closeActivity(); return true; } } return super.onKeyDown(keyCode, event); }