credo-science / credo-detector-android

CREDO detector as Android application
Other
6 stars 11 forks source link

Galaxy S3 always want's to cover camera. #37

Open Hannibal-pl opened 6 years ago

Hannibal-pl commented 6 years ago

Galaxy S3 always want's to cover camera. And sometime later crash (in ACRA reporting LOL) I have this device only briefly, and I was unable to debug it properly. I see in logcat before crashing camera output that "preview data" doesn't fit in buffer. It has ~600K and data ~1.3M (you set buffer to 1.5widthheight). I suspect that this device use RGB888 format as preview not NV21. This explains application demand to cover camera - rgb data converted by yuv2rgb give mess. I think you should explicitly set preview format to NV21. Or better use RGB888 if available as you convert to it later - this can save some battery power.

BTW. Better use Firebase reporting not ACRA.