2014年1月22日
摘要: 2014-01-2116:45:02我们知道,当进程长期不活动时,如果系统资源吃紧,会杀死一些Service,或不可见的Activity等所在的进程。如何避免Service被系统杀死,随便在网上搜一下,都能搜到好几种方法,但是每一种方法都有不同的适用环境。1. 添加android:persistent="true"添加android:persistent="true"到AndroidManifest.xml,Google文档描述如下:Whether or not the application should remain running at all t 阅读全文
posted @ 2014-01-22 15:58 wlrhnh 阅读(15863) 评论(1) 推荐(0) 编辑