<service android:name="com.xx.service.xxService" >
<intent-filter>
<action android:name="com.xx.service.xxService.Action" />
<data android:scheme="http" android:host="www.baidu.com" />
</intent-filter>
</service>
如果要配置多个data,path属性就不要写了,不然会引起很多不必要的麻烦。
最后
以上就是迷你香菇最近收集整理的关于关于service中intent-filter data属性的一个小坑的全部内容,更多相关关于service中intent-filter内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复