[Resolved] New largeHeap setting for build.settings

Saw this in the 994 daily build:
Android: Added new “build.settings” option “settings.android.largeHeap = true” that allows apps to use more memory on Android 3.0 or higher devices. Works around out-of-memory errors when loading large images for high res displays.

What is the proper way to set this in the build.settings file?

[lua] android =
{
settings.android.largeHeap = true
}[/lua]

Or something else? [import]uid: 17827 topic_id: 34386 reply_id: 334386[/import]

My guess was:

settings =  
{  
 android =  
 {  
 largeHeap = true  
 }  
}  

My guess is that the setting is not a var to be picked up by Android OS, but by the corona SDK, so it doesn’t require the whole string in one var (to be picked up by the OS) – just the presence of the largeHeap var in the struct for the SDK to pick up on at app launch. Anyone know the answer? [import]uid: 79933 topic_id: 34386 reply_id: 136665[/import]

mpappas’ “build.settings” file is the correct one.

You can find more information about this new setting and why we added it here…
http://developer.coronalabs.com/forum/2012/08/07/very-weird-texture-memory-problem-android#comment-136404
[import]uid: 32256 topic_id: 34386 reply_id: 136709[/import]

Thanks, Joshua.

[lua]settings =
{
android =
{
largeHeap = true
}
}[/lua] [import]uid: 17827 topic_id: 34386 reply_id: 136710[/import]

My guess was:

settings =  
{  
 android =  
 {  
 largeHeap = true  
 }  
}  

My guess is that the setting is not a var to be picked up by Android OS, but by the corona SDK, so it doesn’t require the whole string in one var (to be picked up by the OS) – just the presence of the largeHeap var in the struct for the SDK to pick up on at app launch. Anyone know the answer? [import]uid: 79933 topic_id: 34386 reply_id: 136665[/import]

mpappas’ “build.settings” file is the correct one.

You can find more information about this new setting and why we added it here…
http://developer.coronalabs.com/forum/2012/08/07/very-weird-texture-memory-problem-android#comment-136404
[import]uid: 32256 topic_id: 34386 reply_id: 136709[/import]

Thanks, Joshua.

[lua]settings =
{
android =
{
largeHeap = true
}
}[/lua] [import]uid: 17827 topic_id: 34386 reply_id: 136710[/import]