Java.lang.RuntimeException:Canvas:trying to draw too large (203212800bytes) bitmap.
Exception reason analysis: Canvas drawing bitmap need memory is too big, oom, directly on the crash.
Cause 1: The picture is too big to change the size of the picture to solve.
Cause 2: Picture placement unreasonable, if only mipmap-*dpi a few folders, no drawable-*dpi corresponding folder, only the default drawable folder, put the picture under the Drawable folder
will lead to the above exception, if your device needs drawable-xxhdpi under the resources, then only need to move the picture from drawable to drawable-xxhdpi can be resolved.
Or create a new drawable-nodpi folder and move the picture resource to the drawable-nodpi folder.
In this case, the Android device will automatically enlarge the image resource under drawable by default N*n, regenerate a bitmap, then load again, then the Oom,crash will appear.
Java.lang.RuntimeException:Canvas:trying to draw too large (203212800bytes) bitmap.