我正在阅读这篇关于如何构建更高效的 Android 应用程序的精彩文章:http://blog.azoft.com/android-application-development-tips/ .
这些提示确实很有帮助。但我不太确定这个:
“由于每个进程需要 2MB,并且当前台应用程序需要内存时可能会重新启动,因此请确保服务是短暂的。”
Android 中每个进程都需要 2 MB 内存,这是真的吗?
最佳答案
根据https://developer.android.com/training/articles/memory.html :
Before you decide to create a new process, you need to understand the memory implications. To illustrate the consequences of each process, consider that an empty process doing basically nothing has an extra memory footprint of about 1.4MB, as shown by the memory information dump below.
从基本上什么都不做到做任何有用的事情的 1.4MB,额外 600k 达到 2MB 似乎是合理的。
关于android - Android中每个进程需要2MB内存?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31523217/