Resources:
Http://developer.android.com/guide/topics/manifest/manifest-intro.html
Http://developer.android.com/guide/topics/manifest/manifest-element.html
Each Android application engineering root directory must have a androidmanifest.xml file. This file contains the configuration information of the application on the Android system. This information is read by the system when the program is installed and is properly installed.
This information includes:
Basic application information, including package name, version number, etc.
Component declarations, configuration information used within the application
Application requires SDK version, features, permissions, library
Permissions for Application Publishing
Example:
<?XML version= "1.0" encoding= "Utf-8"?><Manifest> <uses-permission/> <Permission/> <Permission-tree/> <Permission-group/> <Instrumentation/> <USES-SDK/> <uses-configuration/> <uses-feature/> <Supports-screens/> <Compatible-screens/> <supports-gl-texture/> <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/> <path-permission/> </provider> <uses-library/> </Application> </Manifest>
The manifest tag is the root node of the Androidmanifest.xml file. Grammar:
<Manifestxmlns:android= "Http://schemas.android.com/apk/res/android" Package= "string"Android:shareduserid= "string"Android:shareduserlabel= "string resource"Android:versioncode= "integer"Android:versionname= "string"android:installlocation=["Auto"| "Internalonly" | "Preferexternal"]> . . .</Manifest>
Property:
Xmlns:android
namespace, fixed to http://schemas.android.com/apk/res/android
Package
The application package name. The unique identifier of the application in the system, usually in the form of com.google.example, is related to the package name and the automatically generated resource bundle name, but it has nothing to do with the package name of the activity you created.
Android:shareduserid
A Linux User ID that is shared with other applications so that a can access B's files, and B can also access A's files. They can also run in a process. Note: Multiple applications need to use the same signature.
Android:shareduserlabel
Represents the text ID of the Shareduserid. Only valid when Android:shareduserid is valid, it must be a string resource.
Android:versioncode
Application Version number
Android:versionname
Application version name, for the user to see
Android:installlocation
Application default installation Location
Possible values:
Auto: It is installed by default in internal storage, and external storage is installed if the internal storage is full.
Internalonly: can only be installed in internal storage if the internal storage is full (default value)
Preferexternal: First install to external storage, if external storage is not available, install to internal storage
Note: External storage is not stable, plug-in computers, and so on will cause unavailability.
Androidmanifest.xml and Manifest nodes