跨应用启动Service

上传:xsq8177 浏览: 38 推荐: 0 文件:7Z 大小:1.58MB 上传时间:2019-02-19 10:04:42 版权申诉
本代码包含2个工程,通过其中一个工程来启动另一个工程的Service 注意事项: 1.被启动的service需要设置android:exported="true" 2.跨应用启动Service时,在intent中需要设置ComponentName对象 3.android 5.0之后跨应用启动需要使用显示Intent,本代码以显示Intent为例
上传资源
用户评论