@Override public void ChooseSDCard(I_OnActivityResultCallback callback) { try { resultCallback = callback; Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT_TREE); startActivityForResult(intent, READ_REQUEST_CODE); } catch (ActivityNotFoundException activityNotFoundException) { Logger.exception(activityNotFoundException); } }
@Override public String GetValue() { try { int i = ((CameraHolderApi2) cameraUiWrapper.GetCameraHolder()) .get(CaptureRequest.COLOR_CORRECTION_MODE); ColorCorrectionModes sceneModes = ColorCorrectionModes.values()[i]; return sceneModes.toString(); } catch (NullPointerException ex) { Logger.exception(ex); } return ""; }
@Override public void SetValue(String value) { if (parameter != null && parameter.IsSupported()) { if (key_appsettings != null && !key_appsettings.equals("")) fragment_activityInterface.getAppSettings().setString(key_appsettings, value); try { parameter.SetValue(value, true); } catch (NullPointerException ex) { Logger.exception(ex); } onParameterValueChanged(value); } }
@Override public String GetValue() { if (cameraUiWrapper.GetCameraHolder() != null || !((CameraHolderApi2) cameraUiWrapper.GetCameraHolder()) .get(CaptureRequest.CONTROL_AWB_MODE) .equals("null")) { try { int i = ((CameraHolderApi2) cameraUiWrapper.GetCameraHolder()) .get(CaptureRequest.CONTROL_AWB_MODE); WhiteBalanceValues sceneModes = WhiteBalanceValues.values()[i]; return sceneModes.toString(); } catch (NullPointerException ex) { Logger.exception(ex); return "AUTO"; } } else return "AUTO"; }