App Manifest 文档翻译



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:

每一个应用程序在它的根目录里必需有一个功能清单文件(AndroidManifest.xml),这个文件向安卓系统提供必要的应用程序的信息,只有先加载了这些信息,才能够执行应用新程序,除此之外,有如下功能:

  • 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.

         描述组成应用程序中的组件:活动、服务、广播接收器、内容提供。其中的类可以继承组件来实现自己的功能(比如:Intent(意图)所具有的功能)。这些组建的声明让安卓系统了解这些组件有什么功能,在什么环境下可以执行;

  • 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.

         列出应用程序中必需关联的类库。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值