I have an app with 120 views and over 200 png images in the layout. When I load the layout, I get the message "downsampling image due to lack of memory" one time. Then every time I load a bitmap in code from DirAssets, I continually get this same error over and over. Even after I reduced the file sizes of the images, I still get the same amount of errors. This just started happening as my app has grown to its present size.
Could this be related to the number of views that are bitmap drawable, the sheer number of images or something else? I have my doubts that it is related solely to the number of images because I have reduced the number and sizes. The one thing I haven't reduced is the number of views.
Would it be better to use a smaller number of views and make them dual purpose? This is somewhat difficult since I use many buttons and use a separate click event for each.
Should I remove the images from the layout and load them into files?
Can anyone help? This is so frustrating as I have hundreds of hours invested in this app.
Could this be related to the number of views that are bitmap drawable, the sheer number of images or something else? I have my doubts that it is related solely to the number of images because I have reduced the number and sizes. The one thing I haven't reduced is the number of views.
Would it be better to use a smaller number of views and make them dual purpose? This is somewhat difficult since I use many buttons and use a separate click event for each.
Should I remove the images from the layout and load them into files?
Can anyone help? This is so frustrating as I have hundreds of hours invested in this app.
Last edited: