请问在Activity中如何终止由另一个Activity启动的服务? 也就是说如果Activity A启动了服务S,现在需要在Activity B中终止服务S,请问应该怎么做?非常感谢各位的解答 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Intent intent = new Intent(JobStatusUpdate.this, GPSBackservice.class); stopService(intent); 无论在那个Activity里都可以停止当前的服务 Intent intent = new Intent(当前Activity.this,GPSBackservice.class);stopService(intent); 无论在那个Activity里都可以停止当前的服务 Intent intent = new Intent(当前Activity.this,GPSBackservice.class);stopService(intent); 1、获取服务:Intent2、停止:stopService(intent); service 也是可以设置action的intent.setaction(String..);stopService(intent);正解 新手问下最新的android工程目录是什么意思有截图 求指导 scorllview怎么判断已到底部 如何通过另一个软件杀死某个apk的某个activity SDK Manager.exe更新不了。。。 httpclient,get验证问题,求大神解答 SQLite怎么加用户名密码呢? 谁能提供一下Android4.1.2系统的签名工具 java里怎么判断是否是表情符 安卓timer.cancel();问题!! 新手求助listview条目点击问题 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);
正解