猿问
android 里面如何销毁一个Service?
android 里面如何销毁一个Service? 在网上找了很多答案System.exit(0);ActivityManager之类的都没用!
呼如林
浏览 3179
回答 3
3回答
慕姐4208626
在Activity中关闭Service是有方法的 stopService(Intent intent);要调用这个方法 不是Context.stopService();来执行this.stopService(Intent) 就可以了
0
0
0
慕雪6442864
在Service里面根本就不能调用selfStop()方法,或者说这个方法已经过时了!
0
0
0
随时随地看视频
慕课网APP
相关分类
Android
我要回答