Hey guys,
I need a little help with the launchers I'm building...
Basically I am loading a list of applications on the device into a listview with icons and am handling this in a timer. Unfortunately though, if I test this on a device that has lots of apps installed, it then causes the app to crash, presumably because it's out of memory...
Here's the code I'm using:
Is there anything I could do to reduce the strain and prevent crashing? I know lots of other apps that load icons into a list, so there must be a way!
Thanks so much in advance guys :-D This one has been bugging me for a while now!
I need a little help with the launchers I'm building...
Basically I am loading a list of applications on the device into a listview with icons and am handling this in a timer. Unfortunately though, if I test this on a device that has lots of apps installed, it then causes the app to crash, presumably because it's out of memory...
Here's the code I'm using:
B4X:
bloot = packman1.GetApplicationIcon(s.Split(placer, "@").Get(1))
allapps.AddTwoLinesAndBitmap(s.Split(placer, "@").get(0), s.Split(placer, "@").Get(1), bloot.Bitmap)
Is there anything I could do to reduce the strain and prevent crashing? I know lots of other apps that load icons into a list, so there must be a way!
Thanks so much in advance guys :-D This one has been bugging me for a while now!