也就是说如果Activity A启动了服务S,现在需要在Activity B中终止服务S,请问应该怎么做?非常感谢各位的解答
解决方案 »
- android怎么样多个listview的adapter引用同一个HashMap<String, SoftReference<Drawable>>?
- 怎么获取过去时间的时间戳
- 跪求 andriod google map 申请打不开
- android 加载页面!!!!!!!
- 如何获取TextView的最大ScrollY值
- 哪位高手能帮忙解决一下ksoap2发送带附件的webservice
- [求组]android 音乐播放器铃音设置后显示图标,下次启动自动判断系统铃声
- Android菜鸟问个问题
- 安卓新手开发问题,前辈SOS
- 求哪个大神会写手机便签或备忘录能自动提取手机短信内容的!
- int转16进制
- HTC应用商店,让工具“活”起来
GPSBackservice.class);
stopService(intent);
GPSBackservice.class);
stopService(intent);
GPSBackservice.class);
stopService(intent);
2、停止:stopService(intent);
service 也是可以设置action的
intent.setaction(String..);
stopService(intent);
正解