The AndroidManifest.xml File
[原文链接] http://developer.android.com/guide/topics/manifest/manifest-intro.html
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. 列出了该应用程序必须连接的库
转载于:https://www.cnblogs.com/Eugene/archive/2012/10/18/2728857.html