APP Install location under Android programming

Source: Internet
Author: User

Start with API 8 (see official Documentation: APP Install Location | Android developers), you can install your app in an external storage (for example, on an SD card installed on your device). This is an optional feature and you can declare the android:installlocation property in the Androidmanifest.xml of your app. If you do not declare this attribute, your application will be installed on-premises and cannot be moved to external storage.

Modify the android:installlocation property under the <manifest> element in the androidmanifest.xml file and assign the value "preferexternal "or"auto"allows the system to install the app into the external storage. The code is as follows:

<xmlns:android= "http://schemas.android.com/apk/res/android"    Android : installlocation= "preferexternal"    >

If the android:installlocation attribute is declared as preferexternal, it means that you require the application to install the external storage, However, the system does not guarantee that your program will be installed in external storage. If the external storage space is full, the program will be installed in the internal storage. Users can also move your app between two stores. If autois declared, it indicates that your application can be installed externally, but you do not have a preference for an installation location. The system depends on some factors to determine where your application is installed. Users can also move your program between two stores.

Related Article

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.