This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.
I'm having issues with my application on Android devices, even on the emulator. It's crashing on a specific screen but it's not consistent to reproduce. Logcat is throwing errors saying that the Canvas trying to draw bitmaps that are too large.
I researched about it but I haven't been successful finding useful information. In this screen we are loading images urls that are coming through a REST call, so maybe there are some issues with the size of the images?
Any recommendations? I'm attaching a screenshot of the error. Thanks in advance.
The error told itself : your image is too large, either the size, dpi, or resolution and your android is struggling to "draw" your image to your layout.
You might need to reduce the size of image and see how it can help. Or you can try on another device with larger screen resolution.
Thanks for replying! Yeah I figured that bit out, but I couldn't seem to find what image was causing the issue, the logs just throw a bunch of errors that don't really point out the root cause. Since we are loading a lot of data through the endpoint, including said images' urls, what options do I have to deal with that? I was trying to log the raw bytes of the images using the image api but I was having some issues. How would I got about reducing the size of an image before attaching it to a widget?