应用程序清单

原文:

App Manifest

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

  • It names the Java package for the application. The package name serves as a unique identifier for the application.
  • 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.
  • It determines which processes will host application components.
  • It declares which permissions the application must have in order to access protected parts of the API and interact with other applications.
  • It also declares the permissions that others are required to have in order to interact with the application's components.
  • 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.
  • It declares the minimum level of the Android API that the application requires.
  • It lists the libraries that the application must be linked against.
译文:每个应用程序都必须有一个AndroidManifest.xml文件(正好与这个名字)在它的根目录下。清单文件呈现给Android系统,信息系统必须具备才可以运行任何应用程序的代码对你的应用程序的基本信息。除其他事项外,该清单将执行以下操作:
它的名称为应用程序的Java包。该包名作为应用程序的唯一标识符。它描述了该应用程序的组件 - 活动,服务,广播接收器,以及该应用程序由内容提供商。它的名称是实现每个组件和类发布它们的能力(例如,其意图的消息它们可以处理) 。这些声明使Android系统知道什么组件以及在什么条件下可以启动。它决定哪些进程将承载应用程序组件。它声明哪些权限的应用程序必须有以访问API的被保护部分和与其他应用程序进行交互。它还宣称,别人都要求有以与应用程序的组件进行交互的权限。它列出的应用程序运行,提供分析和其他信息的仪器仪表类。这些声明只存在于清单中,而应用程序正在开发和测试;他们删除了应用程序发布之前。它声明了Android的API,应用程序需要的最低水平。它会列出该应用程序必须对链接的库。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值