Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autofocus failed on some devices #11

Open
hamsik2046 opened this issue Oct 20, 2015 · 2 comments
Open

autofocus failed on some devices #11

hamsik2046 opened this issue Oct 20, 2015 · 2 comments
Labels

Comments

@hamsik2046
Copy link

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)

@hamsik2046
Copy link
Author

error phone list and the android system version:

MI4 LTE 4.4.4
MI 3C 4.4.4
MI 4W 4.4.4
SUMSANG n7508v 4.3
and so on

@shliama
Copy link
Contributor

shliama commented Oct 25, 2015

Hey, thanks for report 👍
Unfortunately we don't have exactly those devices but we'll try fix it in the next update.

@shliama shliama added the bug label Oct 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants