我是靠谱客的博主 欢呼爆米花,这篇文章主要介绍Not allowed to bind to service Intent 解决办法,现在分享给大家,希望可以做个参考。

<service android:name=".RecentTaskService"

android:permission="xxx.xxx.xxx"

android:exported="true">

<intent-filter>

<action android:name="xxx.xxx.xxx" />

</intent-filter>
</service>

被绑定的service需要在节点中设置属性exported=true;

如果被绑定service设置了permission:在绑定service时需要声明权限 

<permission android:name="xxx.xxx.xxx" />
<uses-permission android:name="xxx.xxx.xxx" />

最后

以上就是欢呼爆米花最近收集整理的关于Not allowed to bind to service Intent 解决办法的全部内容,更多相关Not内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(117)

评论列表共有 0 条评论

立即
投稿
返回
顶部