Closed OleksandrGrument closed 5 years ago
Still have this bug, for now it occurs on Samsung Galaxy devices with 5 android
In HUAWEI and samsung devices mostly this crash happening. Any help.
As since the cameraview is deprecated and no longer support, I suggest all migrate to camerax
Here is some base examples including cameraview. https://github.com/android/camera
In camerax library the minsdkversion is 21. But i have to use the camera in very low end devices(minsdkversion 16). Any other solution?
Yes, the other solution is to check your application on memory leaks. The OutOfMemory is a marker of a possible memory leak in application.
https://riggaroo.co.za/fixing-memory-leaks-in-android-outofmemoryerror/
The easiest way to find leaks is to use LeakCanary.
Hi, got a crush on some device in method onCameraOpened. Here is the stacktrace :
Did someone have the same issue? How to fix it?