I apologize for the uneducated nature of my question but I am VERY new
to java and have a very basic question.

I am using Android 2.0 and am trying to run a program that needs more
than 24MB of RAM I know it is possible to increase the Heap limit and
I have even found a Java command to do it.

fdef CUSTOM_RUNTIME_HEAP_MAX
#define __make_max_heap_opt(val) #val
#define _make_max_heap_opt(val) "-Xmx" __make_max_heap_opt(val)
opt.optionString = _make_max_heap_opt(CUSTOM_RUNTIME_HEAP_MAX);
#undef __make_max_heap_opt
#undef _make_max_heap_opt
#else
/* limit memory use to 16MB */
opt.optionString = "-Xmx16m";
#endif

Something like that? where I would change -Xmx16m to what I would like
my limit to be. My problem is I don't know what to do with that code.
do I need to put it into my program? how do I hand off this
instruction to Java? I am very linux savvy but very inexperienced with
Java. is there an easier way of doing what I need to do? I would like
to increase the limit to 40MB. Thank you very much!

A.

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to