-
-
android:installLocation
-
The default install location for the application.
The following keyword strings is accepted:
| Value |
Description |
"internalOnly" |
The application must is installed on the internal device storage only. If This is set, the application would never be installed on the external storage. If the internal storage is full and then the system would not install the application. This is also the default behavior if your do not define android:installLocation . |
"auto" |
The application is installed on the external storage, but the system would install the application on the internal stor Age by default. If the internal storage is full and then the system would install it on the external storage. Once installed, the user can move the application to either internal or external storage through the system settings. |
"preferExternal" |
The application prefers to is installed on the external storage (SD card). There is no guarantee that the system would honor this request. The application might be installed on internal storage if the external media are unavailable or full. Once installed, the user can move the application to either internal or external storage through the system settings. |
Note: By default, your application is installed on the internal storage and cannot is installed on the external storage UNL ESS Define this attribute to be either "" auto or " preferExternal ".
When a application is installed on the external storage:
.apkthe file is saved to the external storage, but any application data (such as databases) are still saved on the intern Al device Memory.
- The container in which and the
.apk file is saved are encrypted with a key, allows the application to operate Device that installed it. (A user cannot transfer the SD card to another device and use applications installed on the card.) Though, multiple SD cards can be used with the same device.
- At the user's request, the application can moved to the internal storage.
The user may also request to move a application from the internal storage to the external storage. However, the system won't allow the user-to-move the application to external storage if this attribute are set internalOnly to, Which is the default setting.
Read App Install location For more information about using the attribute (including how to maintain backward compatibilit Y).
Introduced IN:API level 8.
"Mobile development" android:installlocation