I started getting the OutOfMemoryError for my game. I thought it was because I was creating new Bitmaps for each animation (so there were multiple Bitmaps of the same image), but then I created an ImageLoader class to only load each Bitmap once then the objects that need the images just use a reference to them.
However, there are a lot of images in my game for animations, background, items, etc. I just added a few more items and now I keep getting the error.
How do other games handle having a lot of images? I'm sure many other games have more images than mine do and can still avoid this error.
Is there a different/better way to implement an ImageLoader than what I've been doing?
Thanks a lot, guys!