request max heapsize?

by Tomasz » Sun, 15 May 2011 00:31:20 GMT

Sponsored Links
 Hi guys,

Is there a way for an application to request a larger than normal
maximum heap size? I have an application which needs around 100mb RAM
(and this is with lots of tricks to decrease memory usage).

Newer phones with 500mb+ should have no problem coping with this. Any
advice is very much appreciated.



Re: request max heapsize?

by Tomasz » Sun, 15 May 2011 00:59:58 GMT

 I have found some references to a manifest file attribute,
However if I try and use this I get the following error on
error: No resource identifier found for attribute 'largeheap' in
package 'android'


Sponsored Links

Re: Re: request max heapsize?

by Harri Smæ°“tt » Sun, 15 May 2011 01:51:29 GMT


android:largeHeap="true" is mentioned here; #getLargeMemoryClass%28%29

It's API level 11 method, could it be so that this attribute is too?



Re: Re: request max heapsize?

by Dianne Hackborn » Sun, 15 May 2011 02:27:03 GMT

 Yes this was introduced in 3.0.

2011/5/14 Harri Smtt <>

Dianne Hackborn
Android framework engineer

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.


Other Threads

1. tracview: "Qemu trace files not supported yet."

Just to indicate that on Mac Os, when using the "Debug" class in order
to audit an application, when I want to analyze the logs by using the
traceview command, I get a "Qemu trace files not supported yet." error

Is it due to the fact that I'm on MacOS? Is the traceview tool not
totally implemented yet?

Thank you for your support.

2. SSLContext SSL implementation not found

public class ZZLSocketFactory implements LayeredSocketFactory{
        public ZZLSocketFactory(){
                        SSLContext c = SSLContext.getInstance("SSL");
                        c.init(null, new TrustManager[] { new Z509TrustMgr() }, 
                        sf = c.getSocketFactory();
                }catch (Exception e){
                        throw new RuntimeException(e.toString());

the getInstance method is throwing a NoSuchAlgorithmException with the
message as stated above. I've been going over the android docs and it
seems on the surface it should be supported or did i miss anything?

3. disable double-tap in WebView?

4. Remote Update Application - Android

5. hi Friends i want to add Button

6. how to set scroll view

7. How to deploy a new android application