我是靠谱客的博主 斯文戒指,这篇文章主要介绍SecurityException: Not allowed to start service Intent,现在分享给大家,希望可以做个参考。

第三方app 调用远程service 时,如果 manifest.xml 中service 节中为配置 intent-filter 节点,就会报

SecurityException: Not allowed to start service Intent  // SecurityException: Not allowed to bind service Intent

 

正确调用如下:

复制代码
1
 

<service android:name="AlizeRecognitionService">
<intent-filter >

<action android:name="com.bime.alizerecognition.AlizeRecognitionService"/>
</intent-filter>

</service>

 

如果只是下面这样,在本app中调用该service 是没问题的,给第三方app调用就会报上述错误,相当于一种隐式的权限公开声明

复制代码
1
 

<service android:name="AlizeRecognitionService">

</service>

最后

以上就是斯文戒指最近收集整理的关于SecurityException: Not allowed to start service Intent的全部内容,更多相关SecurityException:内容请搜索靠谱客的其他文章。

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

评论列表共有 0 条评论

立即
投稿
返回
顶部