From c4c42eef9a62846a152094d61987e6dd2728e417 Mon Sep 17 00:00:00 2001
From: Scott Main This attribute was introduced in API Level 8. The following keyword strings are accepted: Note: By default, your application will be installed on the
+internal storage and cannot be installed on the external storage unless you define this attribute
+to be either "{@code auto}" or "{@code preferExternal}". When an application is installed on the external storage: The user may also request to move an application from the internal storage to the external
storage. However, the system will not allow the user to move the application to external storage if
-this attribute is set to {@code internalOnly}.
-
Value
Description
-
- "{@code auto}"
- Let the system decide the ideal install location. This will usually be based on the user's
-saved preference.
"{@code internalOnly}"
- The application requests to be installed on the internal device storage only. If this is set,
-then the application will never be installed on the external storage (SD card). If the internal
-storage is full, then the system will not install the application.
+ The application must be installed on the internal device storage only. If this is set,
+the application will never be installed on the external storage. If the internal
+storage is full, then the system will not install the application. This is also the default behavior
+if you do not define {@code android:installLocation}.
+
+ "{@code auto}"
+ The application may be installed on the external storage, but the system will install the
+application on the internal storage by default. If the internal storage is full, then the system
+will install it on the external storage. Once installed, the user can move the application
+to either internal or external storage through the system settings.
+"{@code preferExternal}"
The application prefers to be installed on the external storage (SD card). There is no
guarantee that the system will honor this request. The application might be installed on internal
storage if the external media is unavailable or full, or if the application uses the forward-locking
-mechanism (not supported on external storage).
+mechanism (not supported on external storage). Once installed, the user can move the application to
+either internal or external storage through the system settings.
Introduced in: API Level 8.
@@ -164,6 +172,7 @@ this attribute is set to {@code internalOnly}.
<application><application>