Androidmanifest.xml is a very important manifest file in Android development. It basically contains information about all the components in the application and also provides the Android system with basic information about the application. The system must know this information before running any program code. This article focuses on sharing the configuration of the root node in the MANIFEST.

1. XMLNS: Android Android namespace.

The name of the package, which uniquely identifies the application. The value of the applicationId property in the build.gradle file overrides the package name as the unique ID for the device.

If multiple applications have the same shareUserId and the same certificate set, they can all share data with each other and run in the same process.

4. The android: targetSandboxVersion target sandbox version the default is 1, can be set to 2, to increase the security of the application of the following can use a level 2 sandbox: a. Disallow Uid sharing b. The default value of usesClearTextTraffic in network security configuration is false.

Android :sharedUserLabel defines a readable label for userID. String content must use string resources, not the original string. Only shareUserID is set to be meaningful.

The version number can only be int. The version number is invisible to users of an internal version, and will be automatically determined when the app is updated

7. Android :versionName Indicates the version number displayed to the user. It can be the original string or string resource. This property is displayed to the user and does nothing else

Android :installLocation “internalOnly” : ApK can only be installed on internal devices. If the installLocation attribute is not set, this attribute is used by default. If this option is set, the application will never be installed on external storage. If the internal storage space is full, the system will not install the application. “Auto” : the internal device is preferentially installed, and if the internal memory is full, the system will install it to external memory. “preferExternal” : the application would prefer to install on external memory (SD card). There is no guarantee that the system will accept this request. If external media is unavailable or full, the application may be installed on internal storage


must contain the

tag, To contain the

,

, , , ,

,

,

,

,< uses-Permission >,< uses-permission-SDK-23 >,

, etc. The related configuration of these tags will be shared later.







Follow for more Android technology sharingMy Android tech circle, you can also join QQ group number :690347536, exchange Android development skills.