惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

雷峰网
雷峰网
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 三生石上(FineUI控件)
博客园 - 聂微东
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Hugging Face - Blog
Hugging Face - Blog
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - Franky
MyScale Blog
MyScale Blog
A
About on SuperTechFans
博客园_首页
B
Blog RSS Feed
Martin Fowler
Martin Fowler
大猫的无限游戏
大猫的无限游戏
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Vercel News
Vercel News
C
Check Point Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园 - 【当耐特】
M
MIT News - Artificial intelligence
宝玉的分享
宝玉的分享
T
Tailwind CSS Blog
I
InfoQ
罗磊的独立博客

博客园 - Eugene Leung

Make Web Not War 不使网站成为战场 地理考考你 开始进入SilverLight 这几个问题我来答 邓亚萍博士学位论文 英文题目 DartTrainer 免费下载 从MSN Messenger的Hand Writing开始 今天闲暇的时候画了两幅画 fyiReporting RDLC Report Custom Code - Eugene Leung 骑 自行车 从公司 到家 猴面包树果 baobab tree 继承Form中的DevExpress控件不能打开编辑器Designer LJP Little John PalmOS 1.0 Release 最新版 (RC9后的正式版) 当你老了 --叶芝 我的语文备忘 新开始做wpf,随便写点经验 初中英语课本里隐藏着的惊人秘密(转载) 如果不出意外,我每周都会去工大打球 关于 韩国 申明 豆浆 和 端午 是其国家创造或历史的 看法
The AndroidManifest.xml File
Eugene Leung · 2012-10-18 · via 博客园 - Eugene Leung

Every application must have an AndroidManifest.xml file (with precisely that name) in its root directory. The manifest presents essential information about the application to the Android system, information the system must have before it can run any of the application's code. Among other things, the manifest does the following:

每个应用程序的根目录都必须包含(且唯一包含)一个名为AndroidManifest.xml的文件。这个文件向Android操作系统提供该应用程序的基本信息,告诉操作系统为该应用程序执行内容做好准备,并提供了如下信息:

•It names the Java package for the application. The package name serves as a unique identifier for the application.

1. 为应用程序中的Java程序包命名,该命名展现为该应用程序的唯一ID

•It describes the components of the application — the activities, services, broadcast receivers, and content providers that the application is composed of. It names the classes that implement each of the components and publishes their capabilities (for example, which Intent messages they can handle). These declarations let the Android system know what the components are and under what conditions they can be launched.

2. 描述了应用程序使用到的组件 - 构成该应用程序的 事件,服务,广播接收器,内容提供组件。 指定实现每个组件的类名,并公布其适用性(例如:其能相应什么样的消息)。这些申明可以令Android操作系统知道在什么条件下调用哪个组件。

•It determines which processes will host application components.

3. 指定使用哪个进程来搭载应用程序组件

•It declares which permissions the application must have in order to access protected parts of the API and interact with other applications.

4. 申明该应用程序所需要的权限以访问API中被保护的部分或是与其他应用程序交互

•It also declares the permissions that others are required to have in order to interact with the application's components.

5. 申明其他应用程序应具备什么权限才能与该应用程序中的组件交互

•It lists the Instrumentation classes that provide profiling and other information as the application is running. These declarations are present in the manifest only while the application is being developed and tested; they're removed before the application is published.

6. 列出了在应用程序运行时提供分析和其他数据的实验类。这些声明只在程序开发或是测试的时候用到;程序部署的时候会被移除。

•It declares the minimum level of the Android API that the application requires.

7. 申明可运行该应用程序的最低Android API版本

•It lists the libraries that the application must be linked against

8. 列出了该应用程序必须连接的库