Massive RAM usage!

peve9

Member
Licensed User
Longtime User
Hi everyone,
I have a problem with my application,
Using high resolution image and 2 customlistview my ram usage is 70mb!
How can I reduce it?
What istructions should I avoid?
I have to do something between an activity and the other to save ram?

Sorry for my english,

Peve
 

cyiwin

Active Member
Licensed User
Longtime User
You're using 70MB storage. RAM is the memory that the phone uses to run your program, it is faster than storage and generally isn't big enough to keep an entire app in it all at once. Even though my phone has 80GB's of storage, it only has 1GB RAM.

70MB might not be a huge concern especially if it is used on devices with external storage. Image files take up space. Keep them smaller by using compressed formats like jpg and png. When the program moves them into RAM it will convert them to a Bitmap which is much bigger since it is uncompressed.

I'm struggling with RAM issues myself, As best as I can tell always use LoadBitmapSample and set the size. I'm also trying to load only what I need to use at the time.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…