First, let's take a look at androidmanifest. xml. YesFunction list file. (This is the definition of broadcast receivers and music players in the future)
This configuration file is similar to struts struts-config.xml, but fortunately learned struts2, according to the gourd painting, also understand the approximate meaning of this configuration file.
The meaning of each attribute is roughly as follows:
Manifest
The root node that describes all contents of the package. Under it, you can place:
Uses-Permission
Request the security license required for the normal operation of your package. See securitymodel for more information. A manifest can contain zero or more elements.
Permission
Declares a security license to limit which programs can be used for components and functions in your package. See securitymodel for more information. A manifest can contain zero or more elements.
Instrumentation
Declared code used to test this package or other package command components. See instrumentation for more information on licensing. A manifest can contain zero or more elements.
Application
The root node that contains the application-level component declaration in the package. This element can also contain global and default attributes in the application, such as tags, icons, topics, necessary permissions, and so on. A manifest can contain zero or one such element (no additional one is allowed ). Under it, zero or more of the following component declarations can be placed:
Activity
Activity is the main tool used to interact with users. When a user opens an initial page of an application, most of the other pages used are implemented by different activities and declared in another activity tag.
Note: Each activity must have a <activity> tag, whether used externally or only in its own package. If an activity has no corresponding tag, you cannot run it.
In addition, to support searching for your activity later than running, you can include one or more <intent-filter> elements to describe the operations supported by your activity:
Intent-Filter
Declares the intent values supported by a specified group of parts to form an intentfilter. In addition to specifying different types of values under this element, attributes can also be placed here to describe the unique tag, icon and other information required for an operation.
Action
Intentaction supported by the component.
Category
Intentcategory supported by the component.
Type
The intentdata MIME type supported by the component.
Schema
Intentdata URI scheme supported by the component.
Authority
Intentdata URI Authority supported by the component.
Path
The intentdata URI path supported by the component.
Cycler
Intentreceiver allows the application to obtain data changes or operations, even if it is not currently running. With activity tags, You can selectively include the <intent-filter> elements supported by one or more referers;
Service
Service is a component that can run at any time in the background. With activity tags, You can selectively include the <intent-filter> elements supported by one or more referers;
Provider
Contentprovider is a component used to manage persistent data and publish it to other applications.