“Canvas: trying to draw too large bitmap” when Android N Display Size set larger than Small
I have a published app that is crashing at startup on Android N when the newly introduced Display size OS setting is set to too large a value. When I look in logcat, I see the following message: java.lang.RuntimeException: Canvas: trying to draw too large(106,975,232 bytes) bitmap. I've traced the issue to an ImageView in my first Activity that shows a nice big background image. The image in question is 2048x1066 and is in my generic drawables directory, so no matter the density, this image will be used. Everything works okay when the Display size setting is Small . But when I go up to Default