我正在寻找方法来改善内存为256MB的Android设备的用户界面,以防止滞后。内存是如此有限,以至于大型前端应用程序会触发许多其他应用程序的交换。
The idea is: If an background app (a Facebook app for example) is not necessary to run continuously, unlike, say telephony, which must stay uninterrupted, just pause that app s process, and continue to run it every a few minutes to retrieve updates, only when the cellphone is idle in the pocket, and then pause the process again.
For reducing lag swapping out other apps memory, I want the paused apps memory can be proactively swapped to disk/flash, so the RAM can be instantly released in order the frondend app needs. (reference speed: class 10 SDHC: 10MB/s write, so the browser lags for 2 seconds if a webpage need to claim 20MB RAM)
So my question is: How to force the system to swap a paused process private memory into disk/flash?