首页 > 其他 > 详细

Service 使用

时间:2015-02-02 22:40:22      阅读:346      评论:0      收藏:0      [点我收藏+]

启动和停止Service:

Intent startIntent = new Intent(this, MyService.class);
startService(startIntent); // 启动服务
Intent stopIntent = new Intent(this, MyService.class);
stopService(stopIntent); // 停止服务

 

Service 使用

原文:http://www.cnblogs.com/plmmlp09/p/4268714.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!