1
我的应用程序具有绑定到活动的远程,前台辅助服务。当我清除最近的任务(通过刷卡)服务销毁。我怎样才能防止杀人的服务。清除最近的任务时防止终止服务
<service android:enabled="true"
android:exported="false"
android:stopWithTask="false"
android:process=":xplay"
android:name="com.perm.x.Services.PlayingService"/>
下面是我(在的onResume)结合
Intent serviceIntent = new Intent(this,PlayingService.class);
startService(serviceIntent);
bindService(serviceIntent, serviceConnection, Context.BIND_AUTO_CREATE);
这里是我我怎么解除绑定服务(在的onPause)
unbindService(serviceConnection);
应用程序后您的设备是否有哪个版本的Android?该服务是否最终会被系统重新启动? – Karakuri
4.1果冻豆。是的,服务约4秒后重新启动通知 – dooplaye
也我测试其他应用程序。除Poweramp玩家外几乎所有人都有相同的行为。他只是忽略了杀人 – dooplaye