【发布时间】:2014-05-05 18:26:38
【问题描述】:
我有一个活动:
@Override
protected void onStart() {
super.onStart();
// Bind to LocalService
exampleService = new Intent(this, exampleService.class);
bindService(exampleService, mConnection, Context.BIND_AUTO_CREATE);
startService(exampleService);
}
现在,如果我转到管理应用程序并检查正在运行的服务并终止该服务,该活动仍作为后台进程运行。
我怎样才能让绑定到服务的活动在销毁时也被杀死?
【问题讨论】: