android xml 分析1--- AndroidManifest.xml
来源:互联网 发布:flyplayer for mac 编辑:程序博客网 时间:2024/06/05 12:48
本文出自:http://blog.csdn.net/asdw198111/article/details/6528756,谢谢作者给我们提供这么好的文章学习,
每个android应用程序都有一个AndroidManifest.xml。粗体为默认值
Application
<application android:allowTaskReparenting=["true" | "false"] 是否允许应用程序的activity可以从现在的task移动到别的task
android:backupAgent="string" 程序的备份类名
android:debuggable=["true" | "false"] 程序是否可以被调试,即使在用户模式下
android:description="string resource" 程序的简单描述
android:enabled=["true" | "false"] 为真,再看具体的组件可否被实例化,为假,所有组件不能被实例化
android:hasCode=["true" | "false"]
android:hardwareAccelerated=["true" | "false"] 是否有硬件加速
android:icon="drawable resource"
android:killAfterRestore=["true" | "false"] 是否复位需要重启
android:label="string resource"
android:logo="drawable resource"
android:manageSpaceActivity="string" 管理内存的类名
android:name="string"
android:permission="string"
android:persistent=["true" | "false"] 程序是否总是在运行
android:process="string"
android:restoreAnyVersion=["true" | "false"]
android:taskAffinity="string"
android:theme="resource or theme" >
. . .
</application>
Activity
<activity android:allowTaskReparenting=["true" | "false"] 是否能改变所从属的任务 默认值false,没有就从 Application继承
android:alwaysRetainTaskState=["true" | "false"] 这个值只对一个任务的根活动有意义,再次进入,任务保留以前状态。
android:clearTaskOnLaunch=["true" | "false"] 根活动有意义,为真再次进入总是清空task,只留root activity。
android:configChanges=
["locale", 新的语言
"navigation", 横竖屏变化
"screenLayout",
"fontScale", 全局字体变化
"uiMode"]
android:enabled=["true" | "false"] 是否可以被实例化
android:excludeFromRecents=["true" | "false"] 是否显示最近打开的activity列表里
android:exported=["true" | "false"] 是否允许被其他的程序调用 默认值不定,由intent-fliter 决定。
android:finishOnTaskLaunch=["true" | "false"] 重新启动任务,活动的对象被关闭。 只针对这个活动,不是任务
android:hardwareAccelerated=["true" | "false"] 可不可以硬件加速
android:icon="drawable resource" 程序列表显示的图标
android:label="string resource" 程序列表显示的文本
android:launchMode=["startard" | "singleTop" | 活动可以被实例化多次
"singleTask" | "singleInstance"] 只可以被实例化一次
android:multiprocess=["true" | "false"] 是否允许此活动应用多个进程
android:name="string"
android:noHistory=["true" | "false"] 不在这个屏幕时,是否移除这个activity
android:permission="string"
android:process="string" 从属的进程名
android:screenOrientation=["unspecified" | "user" | "behind" |
"landscape" | "portrait" | 横屏 ,竖屏
"sensor" | "nosensor"] 有感应器定义,没有感应器定义
android:stateNotNeeded=["true" | "false"] 退出activity是否需要保存状态
android:taskAffinity="string"
android:theme="resource or theme"
android:windowSoftInputMode=["stateUnspecified",
"stateUnchanged", "stateHidden", 启动软键盘隐藏
"stateAlwaysHidden", "stateVisible", 软键盘总隐藏 启动软键盘可见
"stateAlwaysVisible", "adjustUnspecified", 软键盘总可见
"adjustResize", "adjustPan"] > activity窗口大小 软键盘变化 窗口不随软键盘变化。
. . .
</activity>
Service
<service android:enabled=["true" | "false"] 是否可以被系统实例化
android:exported[="true" | "false"] 是否可以被其他应用程序的组件调用。由所包含intent filters的决定。
android:icon="drawable resource"
android:label="string resource"
android:name="string"
android:permission="string"
android:process="string" >
. . .
</service>
Receiver
<receiver android:enabled=["true" | "false"] 是否可以被系统实例化
android:exported=["true" | "false"] 是否可以被其他应用程序的组件调用
android:icon="drawable resource"
android:label="string resource"
android:name="string"
android:permission="string"
android:process="string" >
. . .
</receiver>
Provider
<provider android:authorities="list"
android:enabled=["true" | "false"]
android:exported=["true" | "false"]
android:grantUriPermissions=["true" | "false"]
android:icon="drawable resource"
android:initOrder="integer" 数据存储的创建顺序
android:label="string resource"
android:multiprocess=["true" | "false"]
android:name="string"
android:permission="string"
android:process="string"
android:readPermission="string" 数据存储的读取
android:syncable=["true" | "false"] 是否和服务器的数据同步
android:writePermission="string" > 数据存储的改写
. . .
</provider>
intent-filter
<intent-filter android:icon="drawable resource"
android:label="string resource"
android:priority="integer" >
<action android:name="string" />
<category android:name="string" />
<data android:host="string"
android:mimeType="string"
android:path="string"
android:pathPattern="string"
android:pathPrefix="string"
android:port="string"
android:scheme="string" />
. . .
</intent-filter>
- android xml 分析1--- AndroidManifest.xml
- android xml 分析1--- AndroidManifest.xml
- android xml 分析1--- AndroidManifest.xml
- android关于AndroidManifest.xml详细分析+1
- android关于AndroidManifest.xml详细分析
- android关于AndroidManifest.xml详细分析
- android关于AndroidManifest.xml详细分析
- android关于AndroidManifest.xml详细分析
- android关于AndroidManifest.xml详细分析
- Android关于AndroidManifest.xml详细分析
- android关于AndroidManifest.xml详细分析
- android关于AndroidManifest.xml详细分析
- android关于AndroidManifest.xml详细分析
- Android关于AndroidManifest.xml详细分析
- android关于AndroidManifest.xml详细分析
- Android关于AndroidManifest.xml详细分析
- android关于AndroidManifest.xml详细分析
- android关于AndroidManifest.xml详细分析
- 常用UBoot命令
- It’s Not Too Late to Learn How to Code
- hibernate抓取策略fetch=select /join/subselect
- XmlDocument转为String
- Eclipse 插件开发与 Editor 相关的代码
- android xml 分析1--- AndroidManifest.xml
- hdoj1001
- eclipse安装subclipse, SVN 插件
- KEEP ALIVE
- 数据库的建立,以及索引的创建
- java网络编程学习(五)开源项目:Mina
- hdoj1002
- Uboot之一 ~~~ 板级的移植
- java中i=i++的问题