Androidmanifest.xml
<manifest xmlns:android= "Http://schemas.android.com/apk/res/android"
Package= "App3.myapplication" android:installlocation= "Auto">
Android:installlocation=["Auto""internalonly" "preferexternal">
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.
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.
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 into memory when it uses the for ward-locking mechanism , 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.
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 will be moved to the external storage media, but the program's data will still be in memory
② the container where the. apk file is saved will be encrypted with a randomly generated key, so that only the settings for that 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!
App Installation Location statement