Android Question Is Possible to know how much memory is free when I want?

D

Deleted member 30048

Guest
Good Morning. Exists a function that say how much memory is free?? I have problems with bitmaps and I am using various methods to load it, but I don't know what method is better.

Something like:

log ("Now you have: " & FreeMemory & " MB free.")

Another question, what method is the best to free a bitmap. Remove view is good?
Sorry for my English.

Thanks and Regards!
 
Last edited by a moderator:

rbsoft

Active Member
Licensed User
Longtime User
Check out the OS Library.

Rolf
 
Upvote 0
D

Deleted member 30048

Guest
Hello again, I declared "os" like "OperatingSystem" and used "Msgbox(os.AvailableMemory,"")" but I get always 0. Another method to know? Thanks
 
Upvote 0

rbsoft

Active Member
Licensed User
Longtime User
You are right, I also get '0'.
AvailableInternalMemorySize works.

Rolf
 
Upvote 0
D

Deleted member 30048

Guest
Yes, AvailableInternalMemorySize works, but this function returns the value of free Internal Memory (where applications are installed) and I want to know how free RAM (memory where applications are running).
 
Upvote 0

rbsoft

Active Member
Licensed User
Longtime User
I checked the forum, but at present I do not see any solution. Sorry.

Rolf
 
Upvote 0

rbsoft

Active Member
Licensed User
Longtime User
Just checked the Cach lib. Excellent library, Frederic.

Rolf
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…