<span id="Label3"></p><p><p>Any Android project contains a androidmanifest.xml file, which is stored at the lowest level in the project Hierarchy. Manifest can define the structure and metadata of an application and its components and requirements.<br><br>It contains the nodes that make up each activity, Service, Content provider, and broadcast receiver for the application, and uses the intent Filter and permissions to determine how these components interact with each other and from other Applications.<br><br>The manifest file can also specify metadata for the application (such as its icon, version number, or Subject) and additional top-level points that can be used to specify the required security permissions and unit tests, as well as to define hardware, screen, and platform support Requirements.<br><br>The manifest file consists of a root manifest tag, labeled with a package property that is set as a project Bundle. It usually contains a xmlns:android property to provide some system properties that are used within the File.<br><br>Use the Versioncode property to define the current application version as an integer that will increase each time the version is Iterated. Use Versionname to define a public version number that is realistic to the user<br><manifest xmlns:android= "http://schemas.android.com/apk/res/android"</p></p>package= "com.example.horizontalscrollmenusample" android:versioncode= "1"//build number for version iterations Android:versionnam E= "1.0"//function version number presented to the user<br>android:installlocation=["auto" | "internalonly" | "preferexternal"] ><br>[ ... ...] </manifest><br>Internalonly: default Value. When set to this value, the program can only be installed in memory, and if the memory is empty, the program will not install Successfully.<br>Auto: The program may be installed on external storage media (E.G. SD Card), But it will be installed to the phone memory by Default. when the phone memory is empty, The program will be installed on the external storage Media. when the program is installed on the phone, the user can decide whether to place the program in an external storage medium or in Memory.<br>Preferexternal: The program is installed on the external storage media, but the system does not guarantee that the program will be installed on the external storage media. when external storage media is not available or empty, the program is installed into Memory. The program is also installed in memory when the forward-locking mechanism is used , because external storage does not support this MECHANISM. after the program is installed, the user is free to switch whether the program should be on external or internal storage Media.<br>Note: when the program uses the Copy protection feature of Google play, it can only be installed in Memory. when the program is installed on an external storage medium, the ①.apk file is moved to the external storage media, but the Program's data is still in memory ② The container where The. apk file is saved will be encrypted with a randomly generated key, so that only the settings for the program can use the data that exists on the external storage media. warning: When external storage media is uninstalled, programs installed on that external storage media will be terminated immediately!<br>By using the InstallLocation property, you can specify whether to allow (or Prefer) to install the application to external storage (usually the SD Card) instead of the internal storage. For this reason, it can be said that the value is specified as Preferexternal or auto, when using the former, the application will be installed on the external storage whenever possible, while the latter requires the system to Decide.<br>If you do not specify the InstallLocation property, the application will hang into the internal memory, and the user will not be able to move the application to external Storage. The capacity of the internal memory version is limited, so it is best to install the application to external storage whenever possible.<br>Because of the problem of removing or rejecting external memory, installing to external storage is not suitable for some applications, including:<br>1) application widgets with widgets, live Wallpager and Live folder, live Wallpager and Live folder will be from the home screen, and<br>May not be available before reboot<br>2) application applications that provide non-disruptive services and services that he runs will be stopped and will not be restarted automatically<br>3) any IME installed into external memory by the Input method engine (input method Engine:ime) will be Disabled. Once the external memory is available again, the user must re-<br>New Selection IME<br>4) Device Manager Deviceadminreceiver and its management capabilities will be disabled<p><p>Introduction to the Android app manifest file</p></p></span>
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