Closed timbaev closed 7 years ago
hello @timbaev, this is not for the android version is for the device camera.
Why? This is because the bitmap have a limit in the array and if the bitmap is very large, this exception is catch, (please review this https://developer.android.com/training/displaying-bitmaps/index.html).
This is too because the camera of your device is very good and your lvl of quality photo is high, if you have lvl 30 in magical camera maybe work in all devices withouth this exception;).
And the solution: write in your manifest
<application
android:hardwareAccelerated="false"
android:largeHeap="true">
Use, the example of magical camera, download the project and execute, see the manifest of the app, and other process, execute the example and test in any devices.
My recomendation is, dont use the best quality of photography, because the weight is very high, and is difficult for send to Web Services or save in DB... Or if you need all the quality photo, add the large heap, but this increment the ram memory of your device...
Please tell if this work for you, thanks
Then I take a photo, I get this error:
It is only on Android 6.0, on Android 4.4 work perfectly.