Android Loadicon Generates Outofmemoryerror
I just have a little ListView containing all installed apps and their icons but if there are too much Apps installed i run into outOfMemoryErrors while doing Drawable app_icon =
Solution 1:
Resize your icons into small images, you will be fine! (had this problem before, too)
Solution 2:
Solved it myself. I'm now loading every image into a cache before using it. If the cache gets full, the oldest element will be discarded, so new ones can get cached. additionally im resizing my images into smaller icons. that did it.
Post a Comment for "Android Loadicon Generates Outofmemoryerror"