"Mobile development" android:installlocation

Source: Internet
Author: User

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

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.