balakrishnanpt / easycam Goto Github PK
View Code? Open in Web Editor NEWEasyCam makes it easy to implement Camera features in Android App so easily. It offers Single and Multiple photoshoot mode with a preview option.
License: Apache License 2.0
EasyCam makes it easy to implement Camera features in Android App so easily. It offers Single and Multiple photoshoot mode with a preview option.
License: Apache License 2.0
I want to open front camera only. Is there any way for that ?
Hi BalakrishnanPT,
Thanks for your effort for this amazing library .
I am facing a issue while setting done button background, Its not working could u please check and fix.
setDoneButtonDrawable()
Thanks in advance
Vikas
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);
The problem
When I'm take a photo using front camera, the resulting image is flipped vertically.
How to reproduce the problem
Steps to reproduce the behavior:
easycam:0.0.3-rc5
CameraBundleBuilder()
.setClearBucket(true)
.setDoneButtonDrawable(R.drawable.ic_material_check)
.setDoneButtonString("")
.setManualFocus(false)
.createCameraBundle())
Expected behavior
Images in the correct orientation
Additional
I'm thinking that the possible solution would be in the private method setupOrientationListener
at CameraControllerActivity
, considerate change the orientation value depending of selected camera.
Describe the bug
A shutter lag about 3 to 10 seconds after take picture on single photo mode.
To Reproduce
I'm using setting :
cameraIntent.putExtra("inputData", new CameraBundleBuilder()
.setFullscreenMode(false)
.setSinglePhotoMode(true)
.setManualFocus(false)
.setBucketName(getClass().getName())
.setCaptureButtonDrawable(R.drawable.ic_camera)
.setPreviewPageRedirection(false)
.setPreviewIconVisiblity(false)
.setPreviewEnableCount(false)
.setPreLoaded(false)
.setEnableDone(false)
.setClearBucket(true)
.setManualFocus(false)
.createCameraBundle());
After take image, cameracontrolActivity not close immediately, but give a delay about 3 to 10 second before camera activity closed
java.lang.NullPointerException: Attempt to invoke virtual method 'com.hello.ashish.camera_demo.capture.CameraSelection com.hello.ashish.camera_demo.CameraControllerViewModel.getCameraSelection()' on a null object reference
at com.hello.ashish.camera_demo.capture.CaptureFragment.onViewCreated(CaptureFragment.java:687)
at androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManagerImpl.java:892)
at androidx.fragment.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManagerImpl.java:1238)
at androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManagerImpl.java:1303)
at androidx.fragment.app.BackStackRecord.executeOps(BackStackRecord.java:439)
at androidx.fragment.app.FragmentManagerImpl.executeOps(FragmentManagerImpl.java:2079)
at androidx.fragment.app.FragmentManagerImpl.executeOpsTogether(FragmentManagerImpl.java:1869)
at androidx.fragment.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManagerImpl.java:1824)
at androidx.fragment.app.FragmentManagerImpl.execPendingActions(FragmentManagerImpl.java:1727)
at androidx.fragment.app.FragmentManagerImpl.dispatchStateChange(FragmentManagerImpl.java:2663)
at androidx.fragment.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManagerImpl.java:2613)
at androidx.fragment.app.FragmentController.dispatchActivityCreated(FragmentController.java:246)
at androidx.fragment.app.FragmentActivity.onStart(FragmentActivity.java:542)
at androidx.appcompat.app.AppCompatActivity.onStart(AppCompatActivity.java:201)
at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1391)
at android.app.Activity.performStart(Activity.java:7157)
at android.app.ActivityThread.handleStartActivity(ActivityThread.java:2970)
at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:180)
at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:165)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:142)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:70)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1838)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6715)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:911)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.