public void execute() { ApplicationInfo info = null; try { info = this.mGet .getActivity() .getPackageManager() .getApplicationInfo("com.kddi.android.auclouduploader", 128); } catch (NameNotFoundException e) { CamLog.d(FaceDetector.TAG, "Au Cloud cannot be founded:", e); } if (info == null || info.enabled) { Intent intent = new Intent(); intent.setComponent( new ComponentName( "com.kddi.android.auclouduploader", "com.kddi.android.auclouduploader.activity.AutoUploadSettingActivity")); intent.addFlags(67108864); try { this.mGet.getActivity().startActivity(intent); return; } catch (ActivityNotFoundException ex) { CamLog.e(FaceDetector.TAG, "AU Cloud App is not exist", ex); return; } } this.mGet.showDialogPopup(28); }
public void execute(LGParameters lgParameters, Object arg) { if (!(this.mGet.getCurrentModule() instanceof MainBeautyShot) || !this.mGet.getEngineProcessor().checkEngineTag(FaceBeauty.ENGINE_TAG)) { lgParameters.getParameters().set(CameraConstants.PARAM_KEY_DUAL_RECORDER, 0); this.mGet.setModule(Module.MAIN_BEAUTY_SHOT); this.mGet.getEngineProcessor().setEngine(this.mGet.getFaceBeauty()); int value = 0; if (this.mGet.findPreference(Setting.KEY_BEAUTYSHOT) != null) { value = Integer.parseInt(this.mGet.getSettingValue(Setting.KEY_BEAUTYSHOT)); CamLog.e(FaceDetector.TAG, "beautyshot value : " + value); } if (value < 0) { value = 0; } this.mGet.setFaceBeutyShotParameter(value); } }