ITeye博客

memory

共 2 篇文章

Running Android with low RAM

Introduction Android now supports devices with 512MB of RAM. This documentation is intended to help OEMs optimize and configure Android 4.4 for low-memory devices. Several of these optimizations are generic enough that they can be applied to previous releases as well. Android 4.4 platform optimizat…

2014-06-27 10:32 · Android · memory

Managing Your App's Memory

避免内存泄露:将对方放入到全局变量 适时释放内存:比如生命周期回调函数 Android如何管理内存? 1.Anroid不用swap memory,用paging和memory-mapping 所有被修改过的内存都必须常驻内存,且不能被paged out.所以要适时释放所有引用的内存。 但是没有修改过的文件,可以被page out of RAM 2.共享内存 Android尝试通过如下方式在进程间共享RAM 1)所有app进程从Zygote Fork 出来。Zygote在系统启动时启动并加载框架代码和资源. 这样可以在各应用进程间共享框架的代码和资源 2) 多数的static data被mma…

2014-05-19 15:02 · Android · memory