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

I can't get anything by using this demo(new and old demo) in Android 6.0? why #3

Open
pangpangshui opened this issue Aug 31, 2017 · 14 comments

Comments

@pangpangshui
Copy link

pangpangshui commented Aug 31, 2017

I get some debug info, but it is so long that I just clip some like this:

W GLConsumer: [SurfaceTexture-0-21322-0] bindTextureImage: clearing GL error: 0x502

Can you give me a hand? And may I ask which system version in your Android phone?

@188080501
Copy link
Owner

188080501 commented Aug 31, 2017

What's your android device model?

@pangpangshui
Copy link
Author

pangpangshui commented Sep 1, 2017

Redmi 2A with Android 5.1 and Redmi Note 4 with Android 6.0
@188080501

@pangpangshui
Copy link
Author

Also I found the reason why this bug happend may be the Android 6.0 system. Just like this
http://www.bytran.org/androidmpermissions.htm

@188080501
Copy link
Owner

When you run demo, is a black screen, or camera image displayed, but can not analyse the data?

@pangpangshui
Copy link
Author

pangpangshui commented Sep 1, 2017

I found that I did't change the target SDK to API 23. When I changed it, the error message(W GLConsumer: [SurfaceTexture-0-21322-0] bindTextureImage: clearing GL error: 0x502) disappeared, but the phone got a black screen just like I couldn't call the camera. And the MIUI didn't give me a tips that permiting to call camera, so I guess Android 6.0 permission would be the reason. But have no idea how to fix it. @188080501 -_-

@188080501
Copy link
Owner

have no idea too, sorry T.T

@pangpangshui
Copy link
Author

pangpangshui commented Sep 3, 2017

Okay, thanks anyway.
By the way, after google it, I think I may be connected with opengl and it is neccesarry to override Java function. I am not familiar with Java, so there's nothing I can do about the problem. May be like this http://maninara.blogspot.sg/2015/03/render-camera-preview-using-opengl-es.html. But I don't know how to modify this project.
Hope someone can fix this problem.

@pangpangshui
Copy link
Author

Can I ask what version is qzxing that you use? If you use a new one, may be you can fix this problem.

@188080501
Copy link
Owner

Currently based on zxing development, not qzxing.

@pangpangshui
Copy link
Author

Thanks, I get it.
If you update your code which can fit Android 6.0, please sent me a message.
Best wishes for you.

@188080501
Copy link
Owner

you tried to declare the camera permissions?

@pangpangshui
Copy link
Author

Yes, but I couldn't do it successfully with Java because I am not familiar with Java at all. I have no idea that whether it can work well or not if I add the camera permission. Hope you can try.

@pangpangshui
Copy link
Author

I fixed it when I use Qt5.9.1 compiling my project. Thanks.

@188080501
Copy link
Owner

188080501 commented Feb 5, 2018

good news 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants