appManifes

 

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文件,这个文件主要展示了对于这个安卓系统的此应用的一些本质信息,在任何应用程序代码运行之前都必须拥有一个信息系统,在一些其他方面,manifest也做如下一些事情:

  • It names the Java package for the application. The package name serves as a unique identifier for the application.
  • 为这个应用程序命名java的包,这个包的名字为这个应用提供一个独一无二的识别
  • 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.
  • 它也定义了应用程序所需要的最低水平的安卓API
  • It lists the libraries that the application must be linked against.
  • 它列出了应用程序相关联的libraries
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值