I'm adding lots of bitmaps to one single page, and I'm running into an out of memory error. After searching through the forum, it seems that this could be due to too many canvas init's.
This is how I add my graphics:
How can I re-write this code?
This is how I add my graphics:
B4X:
(loop start)
Dim ico1 As Label
ico1.Initialize("")
dim canvas1 As Canvas
Dim rect1 As Rect
canvas1.Initialize(ico1)
myicon.DrawPicture(canvas1, rect1)
(loop end)
How can I re-write this code?