官术网_书友最值得收藏!

Wondering what the various causes of memory increase are?

In any app, the memory is bound to increase at various points of time as and when you use it. Do not panic if the memory keeps on increasing when you do some stuff in the app, like loading data over the network, displaying an image, rendering a view on the screen or running a background task. It means that for whatever task you do in the app, for example displaying an image onto the screen, the app needs to allocate some amount of space in the RAM. Now, this allocation is for one particular process. Similar allocations will also happen for other processes. These will increase the memory and, if not handled, may cause a memory leak in your App.

For most of the Apps, Android has a Dalvik garbage collector, which takes care of the memory allocations and releases the memory when done. This will help prevent memory leaks.

By carefully understanding how your Android application handles memory operations, you can ensure that the app is running efficiently on memory contained devices. Eventually, this will also lead to a reduction in out-of-memory crashes.

主站蜘蛛池模板: 溧水县| 潞城市| 武强县| 攀枝花市| 台中市| 昆明市| 闽清县| 云和县| 喀喇沁旗| 庆元县| 西吉县| 舟山市| 太谷县| 化州市| 全南县| 屏边| 蕲春县| 桃园县| 平和县| 都江堰市| 涟水县| 丰都县| 宣城市| 盐边县| 得荣县| 壶关县| 淮安市| 进贤县| 杭州市| 五华县| 老河口市| 尼玛县| 图片| 丰原市| 大厂| 东乡族自治县| 鄱阳县| 石首市| 喜德县| 虞城县| 乐昌市|