EasyCam icon indicating copy to clipboard operation
EasyCam copied to clipboard

How can I call front camera from intent to start this camera?

Open robinroyal15 opened this issue 4 years ago • 0 comments

I need to take selfie only. Please guide which extra parameter which needs to be added with below intent call to open front camera?

Intent intent = new Intent(this, CameraControllerActivity.class); intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_CLEAR_TOP); intent.putExtra("inputData", new CameraBundleBuilder() .setFullscreenMode(false) .setDoneButtonString("Add") .setSinglePhotoMode(false) .setMax_photo(3) .setManualFocus(true) .setBucketName(getClass().getName()) .setPreviewEnableCount(true) .setPreviewIconVisiblity(true) .setPreviewPageRedirection(true) .setEnableDone(false) .setClearBucket(true) .createCameraBundle()); startActivityForResult(intent, 214);

robinroyal15 avatar Jul 23 '20 19:07 robinroyal15