Hi, I'm pretty new with Android and I have a doubt about how the resource loading works.
I'm trying to make a game drawing directly on canvas, and I'm loading the bitmaps using "BitmapFactory.decodeResource(mResources, R.drawable.my_image)", my doubt is about the way Android stores/loads these. I'm going to have to load the same image a few times, so I think I need a "ResourceManager" for my game, but the R class is confusing me. When I call the "decodeResource", Android has to actually load the image in memory or it just gives me a "pointer" to the first image it loaded (when loading the same image twice or more)? I know I could try checking the memory it takes when loading the same image lots of times, but I'm just feeling lazy for that :-P Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

