Open the AndroidManfest. xml file, code, intent filter, and describe the start position and time of the Activity. Every time an Activity executes an operation, it creates an Intent object. The information that this object can carry can describe what the user wants to do, what data the user wants to process, and the data type, and some other information. Android compares the data exposed by each Application with the inter filter, and finds the most suitable Activity to process the data and operations specified by the caller.
The following table details the parameters of AndroidManfest. xml:
Manifest |
The root node that describes all contents of the package. |
Xmlns: android |
Include the namespace declaration. This allows android to use various standard attributes in files and provides data in most elements. |
| Package |
Declare the application package. |
Application |
The root node that contains the application-level component declaration in the package. This element contains some global and default attributes of the application, such as labels, icons, themes, Required permissions. A manifest can contain at most one such element. |
Android: icon |
Application icon |
| Android: label |
Application name |
Activity |
The main tool used to interact with users. Activity is the initial page for a user to open an application. Most of the other pages used are implemented by different activities and declared in another activity. Each activity must have a <activity> tag, whether used by the outside world or only used in its own package. If this activity does not have a corresponding tag, you cannot run it. To support searching for activity during runtime, you can Contains one or more <intent-filter> to describe the operations supported by the activity. |
Android: name |
Default activity started by the application |
Intent-filter |
Declares the intent values supported by a specified group of parts to form an intent filter. In addition to specifying different types of values under this element, attributes can also be placed here to describe the unique tag required for an operation. Icon and other information. |
Action |
The component supports intent action. |
Category |
The component supports intent category. The default activity started by the application is specified here. |
Uses-sdk |
SDK version used by the application |
From Peking University-Google Android lab