From c861a5d24ed847b58d197109d79a4d26572b7cf2 Mon Sep 17 00:00:00 2001 From: Scott Main Date: Mon, 5 Apr 2010 15:47:54 -0700 Subject: [PATCH] docs: add manifest documentation for installLocation Change-Id: Id52e3460bd1ada86b6b32a47dd020829d65ac5f8 --- .../html/guide/topics/manifest/manifest-element.jd | 112 +++++++++++++++------ 1 file changed, 83 insertions(+), 29 deletions(-) diff --git a/docs/html/guide/topics/manifest/manifest-element.jd b/docs/html/guide/topics/manifest/manifest-element.jd index 48e598a4ef4a..1255949b3699 100644 --- a/docs/html/guide/topics/manifest/manifest-element.jd +++ b/docs/html/guide/topics/manifest/manifest-element.jd @@ -8,7 +8,8 @@ page.title=<manifest> android:sharedUserId="string" android:sharedUserLabel="string resource" android:versionCode="integer" - android:versionName="string" > + android:versionName="string" + android:installLocation=["auto" | "internalOnly" | "preferExternal"] > . . . </manifest> @@ -37,7 +38,8 @@ contain an +
+
{@code xmlns:android}
Defines the Android namespace. This attribute should always be set to "{@code http://schemas.android.com/apk/res/android}".
@@ -50,18 +52,19 @@ package name parts may only start with letters. For example, applications published by Google could have names in the form com.google.app.application_name. -

-The package name serves as a unique identifier for the application. -It's also the default name for the application process (see the -<application> -element's -process -process attribute) and the default task affinity of an activity -(see the -<activity> -element's -taskAffinity attribute). -

+

+ The package name serves as a unique identifier for the application. + It's also the default name for the application process (see the + <application> + element's + process + process attribute) and the default task affinity of an activity + (see the + <activity> + element's + taskAffinity attribute). +

+
{@code android:sharedUserId}
The name of a Linux user ID that will be shared with other applications. @@ -75,33 +78,84 @@ other's data and, if desired, run in the same process.
A user-readable label for the shared user ID. The label must be set as a reference to a string resource; it cannot be a raw string. -

- -This attribute was introduced in API Level 3. It is meaningful only if the -sharedUserId attribute is also set. -

+

+ + This attribute was introduced in API Level 3. It is meaningful only if the + sharedUserId attribute is also set. +

+
{@code android:versionCode}
-
An internal version number. This number is used only to determine whether +
An internal version number. This number is used only to determine whether one version is more recent than another, with higher numbers indicating more recent versions. This is not the version number shown to users; that number is set by the {@code versionName} attribute. -

-The value must be set as an integer, such as "100". You can define it however -you want, as long as each successive version has a higher number. For example, -it could be a build number. Or you could translate a version number in "x.y" -format to an integer by encoding the "x" and "y" separately in the lower and -upper 16 bits. Or you could simply increase the number by one each time a new -version is released. -

+

+ The value must be set as an integer, such as "100". You can define it however + you want, as long as each successive version has a higher number. For example, + it could be a build number. Or you could translate a version number in "x.y" + format to an integer by encoding the "x" and "y" separately in the lower and + upper 16 bits. Or you could simply increase the number by one each time a new + version is released. +

+
{@code android:versionName}
The version number shown to users. This attribute can be set as a raw string or as a reference to a string resource. The string has no other purpose than to be displayed to users. The {@code versionCode} attribute holds the significant version number used internally. -
+ + +
{@code android:installLocation}
+
The default install location for your application. +

This attribute was introduced in API Level 8.

+ +

The following keyword strings are accepted:

+ + + + + + + + + + + + + + + +
ValueDescription
"{@code auto}"Let the system decide the ideal install location. This will usually be based on the user's +saved preference.
"{@code internalOnly}"Request to be installed only on the internal device storage. 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 application will not install.
"{@code preferExternal}"Prefer to be installed on 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).
+ +

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, this will not be allowed if this attribute is set to {@code internalOnly}. +

+ +
+ + +
introduced in:
-- 2.11.0