允许在外部设备上安装android应用程序

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了允许在外部设备上安装android应用程序相关的知识,希望对你有一定的参考价值。

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.

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.
  1. <manifest xmlns:android="http://schemas.android.com/apk/res/android"
  2. android:installLocation="auto"
  3. ... >
  4.  
  5. <manifest xmlns:android="http://schemas.android.com/apk/res/android"
  6. android:installLocation="preferExternal"
  7. ... >

以上是关于允许在外部设备上安装android应用程序的主要内容,如果未能解决你的问题,请参考以下文章