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. How to configure proxy settings on my Droid with Android 1.6 ?? plz help

*> I am unable to use internet in university network due to proxy issue*
Meaning you need to set up proxy settings in order to connect to the
internet at your university?  If that is the case you need to contact the
university's IT department... only they will be able to give you the
settings you need.


----------------------------------------------------------------------
There are only 10 types of people in the world...
Those who know binary and those who don't.
----------------------------------------------------------------------





> 

2. Activities and Multiple Views

Hi,

I start a browser and from the browser,I start  a video which occupies
only a small part of the screen,say the bottom right corner.

Now the browser will be pushed to the 2nd position in the window order
and Video will come to the first position.
Is it possible that browser can have the control for active window and
receive the key events though the video is the Top Most window.

Please help me out.

Thanks in advance.

Regards,
Revathi K J

-- 
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: 

3. LVL - A Massive Concern

4. WebView question

5. Problem with PhoneStateListener.onSignalStrengthsChanged

6. capturing last n lines of logcat

7. Html resource localization / internationalization