Why does my Android app allocate substantially different amounts of memory on different OS versions? -


i have simple android application consisting of single activity text boxes , little bit of processing code.

when install on 2.3 device , open first time, allocates ~2.7mb of memory (according heap update tab in eclipse ddms).

on 3.1 device, allocates ~6.1mb.

on 4.0 device, allocates ~13.8mb.

i've made no code changes between 3, , these measures taken upon initial install/opening of application (so hasn't had time leaking). uses no images, , not have hardware acceleration enabled.

does know why footprints might differ much? assume has differences in os versions, i'm wondering if knows differences might be.

i have read change in bitmap allocation 3.0 onward causing apparent increases in allocated memory, application doesn't use images. consists of few edittext fields , textviews.

pre-honeycomb bitmaps allocated in native heap. since android 3.0 (including ics), pixel data bitmaps allocated in dalvik heap. difference between 2.3 , 3.1 might because of this.

ics indeed uses memory 3.1 , don't know reason it.


Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -