Android四大组件都有 android:exported 属性

  android:exported="true" 时 表示该组件是公开的,其它组件可以访问这个组件

  android:exported="false" 时表示该组件是私有的,只有自己或有相关权限的其它组件可以访问

     <application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".MainActivity"
android:exported="false"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

它的默认值;

  组件在mainifest.xml中定义时,如果没有 <intent-filter> 那么就是 true

最新文章

  1. 如何将本地的jar包上传到maven本地仓库中
  2. Linux的学习日记
  3. Exception in thread &quot;main&quot; java.lang.UnsupportedClassVersionError: org/apache/maven/cli/MavenCli :
  4. oracle_空值判断
  5. sp_get_menu函数使用分析
  6. django 添加动态表格的方法
  7. Ubuntu Linux上安装配置Mysql
  8. [unity菜鸟] 笔记1 —— 函数篇
  9. Error occured processing XML &amp;#39;Cannot find class [springmvc.extention.BeanArgumentResolver]&amp;#39;.
  10. Leetcode 176. Second Highest Salary
  11. Nodejs之package.json介绍说明
  12. Eclipse目录实解
  13. linux 下nginx 集群CAS单点登录实现
  14. SDOI2014 R1做题笔记
  15. 在使用 Spring Boot 和 MyBatis 动态切换数据源时遇到的问题以及解决方法
  16. 把项目运行到本地环境及mysql配置
  17. asp.net mvc接收安卓post的json字符串
  18. flask小例
  19. Solidity数组
  20. 【Coursera】Fourth Week(1)

热门文章

  1. SNV ConnerStore使用说明
  2. bnuoj 4208 Bubble sort
  3. Android journey 2 @Android系统框架
  4. p1205单词翻转-递归解决
  5. openmeetings 视频会议系统介绍
  6. SQLServer 语句-创建索引【转】
  7. 【POJ】【2096】Collecting Bugs
  8. ios开发之多线程资源争夺
  9. 使用函数的递归调用来解决Hanoi(汉诺)塔问题。
  10. 中小企业 IT 运维福利:快速构建 on-call 机制