- Expert Android Programming
- Prajyot Mainkar
- 194字
- 2021-07-08 10:29:07
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.
- Raspberry Pi for Python Programmers Cookbook(Second Edition)
- 編程的修煉
- Python量化投資指南:基礎、數據與實戰
- Azure IoT Development Cookbook
- 面向STEM的Scratch創新課程
- Apache Spark 2.x for Java Developers
- Jenkins Continuous Integration Cookbook(Second Edition)
- Windows內核編程
- AIRIOT物聯網平臺開發框架應用與實戰
- Visual FoxPro 6.0程序設計
- Java程序設計與項目案例教程
- Go語言入門經典
- C/C++程序設計教程
- LibGDX Game Development By Example
- Java程序設計(項目教學版)