yalantis / cameramodule Goto Github PK
View Code? Open in Web Editor NEWSimple camera module for android applications
Home Page: https://yalantis.com/
Simple camera module for android applications
Home Page: https://yalantis.com/
Requirements:
Device: Nexus 4
SDK: 22
Steps to reproduce:
Current Behaviour:
Expected behaviour:
Hello,
Got a crash report from a user working on a Galaxy Tab S2
Does any have the same issue?
We don't own a Galaxy Tab S2 at the office for testing
Cheers
Could you please provide a solution to fix that ?
hi Yalantis,
thanks for your camera module, it works fine, but i got some "autofous failed" on some devices.
here is the error message,and it happens sometime when camera startFocus and the code "camera.autoFocus(callback)" line running:
java.lang.RuntimeException: autoFocus failed
at android.hardware.Camera.native_autoFocus(Native Method)
at android.hardware.Camera.autoFocus(Camera.java:1148)
at com.haofengsoft.lovefamily.camera.CameraPreview.startFocusing(CameraPreview.java:159)
at com.haofengsoft.lovefamily.camera.CameraPreview.takePicture(CameraPreview.java:166)
at com.haofengsoft.lovefamily.camera.CustomCameraActivity.takePhoto(CustomCameraActivity.java:816)
at com.haofengsoft.lovefamily.camera.CustomCameraActivity$4.onClick(CustomCameraActivity.java:494)
at android.view.View.performClick(View.java:4444)
at android.view.View$PerformClick.run(View.java:18457)
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:5047)
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:793)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609)
at dalvik.system.NativeStart.main(Native Method)
Right now I tried to use "intent" to recreate the activity with FRONT_CAMERA set to true so that I can switch the camera but it causes a lot of bugs. Do you have an easier way for this ?
How to maintain image so that the only visible portion in camera preview will be exactly same with the image
I have seen latest updates, but also no gradle, and not so much issues ! (I have got some)
I am trying to change it to camera2 but i couldn't any help please.
I get an issue in CameraPreview class, when calling getActionBar, that is null. I have no ActionBar.
the "showActionBar()" method cares if the actionbar is null, but not the "showBack" method.
Just add it make it running, but...should be something wrong behind
I have found that Zoom is very slow, please give me advise I want to change it according to Velocity. as you are adding ++ in zoom in I want to add some percentage of the Maximum Zoom that camera support in accordance with the finger velocity.
Help me !!
Thanks.
RT
Nexus 7 (2012) Model
Android 4.4.4
Build KTU84P
Tuesday March 18 2014
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.beusoft.liuying/com.yalantis.cameramodule.activity.CameraActivity}: java.lang.RuntimeException: setParameters failed
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2184)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
at android.app.ActivityThread.access$800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5001)
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:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.RuntimeException: setParameters failed
at android.hardware.Camera.native_setParameters(Native Method)
at android.hardware.Camera.setParameters(Camera.java:1651)
at com.yalantis.cameramodule.fragment.CameraFragment.initParams(CameraFragment.java:458)
at com.yalantis.cameramodule.fragment.CameraFragment.init(CameraFragment.java:176)
at com.yalantis.cameramodule.fragment.CameraFragment.onCreate(CameraFragment.java:132)
at android.app.Fragment.performCreate(Fragment.java:1678)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:859)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1062)
at android.app.BackStackRecord.run(BackStackRecord.java:684)
at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1447)
at android.app.Activity.performStart(Activity.java:5240)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2157)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
at android.app.ActivityThread.access$800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5001)
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:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
at dalvik.system.NativeStart.main(Native Method)
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.