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.

Thanks,
Tomasz

-- 



Re: request max heapsize?

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


 I have found some references to a manifest file attribute,
android:largeheap="true"
However if I try and use this I get the following error on
compilation:
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;
 http://developer.android.com/reference/android/app/ActivityManager.html #getLargeMemoryClass%28%29

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

--
H

-- 



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 <har...@gmail.com>






-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

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
message.

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

Thank you for your support.
Cheers,
Edouard
--~--~---------~--~----~------------~-------~--~----~

2. SSLContext SSL implementation not found

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

        }
</snip>
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