Cross-platform SDK and HTML5 tools for mobile app development
X
 
3 posts / 0 new
Last post
widagroup
widagroup's picture
Offline
Mobile Conjurer
Joined: 18 Feb 2012
Posts:
Hi Mem and Lo Mem [SOLVED]

Hi All,

I am writting 2 versions of my App, one which will work on devices with 100MB or more of memory and one which will work on devices with less than 100MB of memory.

The memory settings I have for high mem version are:
Heap: 65536
Stack: 1024
Data: 131072

Is it possible for this app (if loaded onto a low mem device) to display a message like "Please download the low memory version" before it gets to a point where it can't run? Or can I dynamically allocate the memory?

Thanks.

Bogdan Iusco
grigaci's picture
Offline
Mobile Conjurer
Joined: 22 Feb 2011
Posts:
See heapTotalMemory() method.

See heapTotalMemory() method.

Ovidiu
ovidiu's picture
Offline
Mobile Sorcerer
Joined: 27 Jan 2011
Posts:
I'm not sure it is helpful,

I'm not sure it is helpful, but until there will be a way to find out memory information from the device, there is the maGetSystemProperty you might be able to use. Another hack would be to just try to allocate 100 MB or something along and if that fails just display your message.

Login or register to post comments