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

推荐订阅源

罗磊的独立博客
Cisco Talos Blog
Cisco Talos Blog
C
Check Point Blog
博客园_首页
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Martin Fowler
Martin Fowler
Recorded Future
Recorded Future
S
Security @ Cisco Blogs
L
LINUX DO - 最新话题
博客园 - 司徒正美
P
Privacy International News Feed
G
Google Developers Blog
I
Intezer
Hacker News - Newest:
Hacker News - Newest: "LLM"
博客园 - 聂微东
The GitHub Blog
The GitHub Blog
C
Cybersecurity and Infrastructure Security Agency CISA
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Scott Helme
Scott Helme
K
Kaspersky official blog
I
InfoQ
Y
Y Combinator Blog
T
The Blog of Author Tim Ferriss
Webroot Blog
Webroot Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
大猫的无限游戏
大猫的无限游戏
D
Docker
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
W
WeLiveSecurity
Microsoft Azure Blog
Microsoft Azure Blog
Spread Privacy
Spread Privacy
量子位
H
Hacker News: Front Page
Simon Willison's Weblog
Simon Willison's Weblog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
SecWiki News
SecWiki News
S
Security Affairs
Latest news
Latest news
人人都是产品经理
人人都是产品经理
C
CERT Recently Published Vulnerability Notes
S
Security Archives - TechRepublic
V
Visual Studio Blog
T
Troy Hunt's Blog
S
Secure Thoughts
F
Fortinet All Blogs
V
V2EX
The Register - Security
The Register - Security
J
Java Code Geeks
MongoDB | Blog
MongoDB | Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO

博客园 - Eugene Leung

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