警告:receiver Exported receiver does not require permission
2016-04-11 16:08
399 查看
在Android的AndroidManifest.xml文件下写了多个receiver 其中部分receiver中有
解决办法:
加上android:exported = "false"可以解决这个警告。
其中android:exported = “false”而没有任何intent-filer的activity只能通过它的class名去调用,就是意味着,这个activity只能在当前的application中被使用,这种情况下android:exported的值为false,否则出现任何一个intent-filer,它的值则为true。
以上查询资料:http://stackoverflow.com/questions/11462936/exported-activity-does-not-require-permission-when-attempting-to-launch-from-a
<intent-filter> <action android:name="android.intent.action.PACKAGE_REMOVED" /> <data android:scheme="package" /> </intent-filter>
解决办法:
加上android:exported = "false"可以解决这个警告。
<activity android:name=".MainActivity" android:exported="false"> <intent-filter> <action android:name="android.intent.action.VIEW" /> <data android:scheme="http" android:host="example.com" /> </intent-filter> </activity>
其中android:exported = “false”而没有任何intent-filer的activity只能通过它的class名去调用,就是意味着,这个activity只能在当前的application中被使用,这种情况下android:exported的值为false,否则出现任何一个intent-filer,它的值则为true。
以上查询资料:http://stackoverflow.com/questions/11462936/exported-activity-does-not-require-permission-when-attempting-to-launch-from-a
相关文章推荐
- HDU - 4198 Quick out of the Harbour (BFS+优先队列)
- HDU 3836 —— Equivalent Sets
- Kafka源码分析之InFlightRequests
- UILabel设置行距和每段初始距离
- iOS开发之UITabBarController和UICollectionView的使用
- iOS 请求数据或者上传头像的时候卡UI界面
- UIImageView实现图片平铺
- HDOJ 2767 Proving Equivalences
- java中queue的使用
- Access restriction: The type 'BASE64Encoder' is not API (restriction on required library 'D:\Java\jd
- WEB界面设计中太原UI设计师讲何为网格布局设计?
- iOS-UIImagePickerController 内存警告研究
- iOS学习笔记10-UIView动画
- windows下安装requests
- 改变UIView 的位置 Center和Frame
- UItableview控件数据刷新,指定行刷新
- IOS如何给VIEW设置2个圆角?set cornerRadius for only top-left and top-right corner of a UIVIEW
- 1007. Maximum Subsequence Sum (25)
- 跑马灯效果
- iOS开发之UIWindow,iOS程序启动