会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
cbooy
博客园
首页
新随笔
联系
订阅
管理
ContentProvider异常:Caused by: java.lang.SecurityException: Permission Denial
在使用ContentProvider时抛出异常:Caused by: java.lang.SecurityException: Permission Denial
原因:在Provider的 Manifest文件中 对provider的属性描述时 没有 加入 属性 android:exported="true"
android:exported属性非常重要。这个属性用于指示该服务是否能够被其他应用程序组件调用或跟它交互。如果设置为true,则能够被调用或交互,否则不能。
posted on
2015-06-27 16:52
cbooy
阅读(
2312
) 评论(
0
)
编辑
收藏
举报
会员力量,点亮园子希望
刷新页面
返回顶部