jjzjj

QOLService

全部标签

android - onDestroy 被调用但服务没有结束

我正在阅读“开始Android4开发”这本书,并且我正在使用按钮中的以下功能控制服务:publicvoidstartService(Viewview){startService(newIntent(getBaseContext(),QOLService.class));}publicvoidstopService(Viewview){stopService(newIntent(getBaseContext(),QOLService.class));}QOLService.java包括publicclassQOLServiceextendsService{intcounter=0;@Ov