Structure of the Manifest File

The diagram below shows the general structure of the manifest file and every element that it can contain. Each element, along with all of its attributes, is documented in full in a separate file. To view detailed information about any element, click on the element name in the diagram, in the alphabetical list of elements that follows the diagram, or on any other mention of the element name.

<?xml version="1.0" encoding="utf-8"?> <manifest>

<uses-permission

/>

<permission />

<permission-tree

/>

<permission-group

/>

instrumentation

/>

<uses-sdk />

<uses-sdk />

<application>

<activity>

<intent-filter> <action />

<category /> <data /> </intent-filter> <meta-data /> </activity>

<activity-alias>

<intent-filter> . . . </intent-filter> <meta-data /> </activity-alias>

<service>

<intent-filter> . . . </intent-filter> <meta-data/> </service>

<receiver>

<intent-filter> . . . </intent-filter> <meta-data /> </receiver>

<provider>

<grant-uri-permission /> <meta-data /> </provider>

<uses-library /> <uses-configuration />

</application> </manifest>

All the elements that can appear in the manifest file are listed below in alphabetical order. These are the only legal elements; you cannot add your own elements or attributes.

<action>

<activity>

<activity-alias>

<application>

<category>

<data>

<grant-uri-permission>

<instrumentation>

<intent-filter>

<manifest>

<meta-data>

<permission>

<permission-group>

<permission-tree>

<provider>

<receiver>

<service>

<uses-configuration> <uses-library> <uses-permission> <uses-sdk>

0 0

Post a comment