让Android应用不被杀死(killer)的方法
2017-02-06
22
方法:对于一个service,可以首先把它设为在前台运行:复制代码 代码如下:public void MyService.onCreate() { super.onCreate(); Notification notification = new Notification(android.R.drawable.my_service_icon, "my_service_name", System.currentTimeMillis()); PendingIn...