spinaki / android-camera Goto Github PK
View Code? Open in Web Editor NEWLibrary for Android Camera and Camera2
License: Apache License 2.0
Library for Android Camera and Camera2
License: Apache License 2.0
Steps to reproduce:
Lock the device orientation.
or
Lock activity orientation to portrait only.
Opening activity which has camera fragment by holding the device in landscape.
Now Camera preview is showing portrait preview, not in landscape preview, then rotating device preview is disturbed.
Hi,
I Have tried sample project and this is working fine on >= Lollipop devices but , application always crashed on pre-lollipop devices. here are I am attaching logs for that:
FATAL EXCEPTION: main
Process: xyz.pinaki.androidcamera.example, PID: 15232
java.lang.VerifyError: xyz/pinaki/android/camera/CenteredCameraPreviewHolder
at xyz.pinaki.android.camera.CameraFragment.createCenteredCameraPreview(CameraFragment.java:270)
at xyz.pinaki.android.camera.CameraFragment.access$600(CameraFragment.java:39)
at xyz.pinaki.android.camera.CameraFragment$1.onCameraOpen(CameraFragment.java:68)
at xyz.pinaki.android.camera.CameraHandlerThread$1$1.run(CameraHandlerThread.java:37)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5050)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
at dalvik.system.NativeStart.main(Native Method)
No camera preview is available, instead white screen is shown. If you try to change the camera it crashes.
Hi, sorry but I couldn't find a way to close the camera once open, it would be great to have a way of finishing capturing images and hide the views created, the onCameraClosed is called when i change between front and rear camera but there is no way to close the camera after capturing the photo.
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.