Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Beginning with API Level 8, you can allow your application to be installed on the external storage (for example, the device's SD card). This is an optional feature you can declare for your application with the <a href="http://developer.android.com/guide/topics/manifest/manifest-element.html#install" rel="nofollow">android:installLocation</a> manifest attribute. If you do not declare this attribute, your application will be installed on the internal storage only and it cannot be moved to the external storage.</p> <p>To allow the system to install your application on the external storage, modify your manifest file to include the <a href="http://developer.android.com/guide/topics/manifest/manifest-element.html#install" rel="nofollow">android:installLocation</a> attribute in the <a href="http://developer.android.com/guide/topics/manifest/manifest-element.html" rel="nofollow"></a> element, with a value of either "preferExternal" or "auto". For example:</p> <pre><code>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="preferExternal" ... &gt; </code></pre> <p>If you declare "preferExternal", you request that your application be installed on the external storage, but the system does not guarantee that your application will be installed on the external storage. If the external storage is full, the system will install it on the internal storage. The user can also move your application between the two locations.</p> <p>If you declare "auto", you indicate that your application may be installed on the external storage, but you don't have a preference of install location. The system will decide where to install your application based on several factors. The user can also move your application between the two locations.</p> <p>When your application is installed on the external storage:</p> <ul> <li>There is no effect on the application performance so long as the external storage is mounted on the device.</li> <li>The .apk file is saved on the external storage, but all private user data, databases, optimized .dex files, and extracted native code are saved on the internal device memory.</li> <li>The unique container in which your application is stored is encrypted with a randomly generated key that can be decrypted only by the device that originally installed it. Thus, an application installed on an SD card works for only one device.</li> <li>The user can move your application to the internal storage through the system settings.</li> </ul> <p><strong>Warning:</strong> When the user enables USB mass storage to share files with a computer or unmounts the SD card via the system settings, the external storage is unmounted from the device and all applications running on the external storage are immediately killed.</p> <p>Details: <a href="http://developer.android.com/guide/topics/data/install-location.html" rel="nofollow">All Installation Location</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload