Android Manifest Content Parsing

Source: Internet
Author: User

Manifest files are divided into three parts: Global information Configuration, component information, permission configuration


1. Global information configuration 1) application package name and version information management

2) Control Android version information (the minimum version you can support, the system version you expect)



2. The component information is wrapped by the large label application. The label's properties can be set by icon, title, and theme style.

It can contain activity, service, content provider, Broadcastreceiver.


1) activity specifies the class name through the Name property.

Intent-filter can be understood as a business card, even if you do not know its name, you can also get information through a business card. It can also be understood as a filter.


2) Service

Similar to activity


3) Content Provider

Manage database access and sharing of data between programs


4) receiver global event listener. Listen for matching broadcasts.

Intent-filter is a filter.


3. Permissions Configuration
1) Use System permissions

<use-permission>

2) Custom permissions can be customized to name, function: to protect certain important components.
For example, third-party applications can access their activity through setclassname, and if you do not want to be accessed, you can add this permission.
That is, add the permission property to your own acitivity, and the value is custom. Also define <permission> in manifest.

Android Manifest Content Parsing

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.