AndroidManfest. xml file description

Source: Internet
Author: User

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
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.