Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/200.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2008/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 如何限制应用程序安装在SD卡上?_Android - Fatal编程技术网

Android 如何限制应用程序安装在SD卡上?

Android 如何限制应用程序安装在SD卡上?,android,Android,我正在开发一个应用程序,我想强制用户在内部存储器中安装此应用程序。应用程序不能安装在SD卡上 如果您有任何建议和想法,我们将不胜感激谢谢U无需阅读文档 但是,如果您确信您的应用程序永远不应该安装在外部存储上,那么您应该通过声明值为“internalOnly”的android:installLocation来明确这一点 从U不读取文档 但是,如果您确信您的应用程序永远不应该安装在外部存储上,那么您应该通过声明值为“internalOnly”的android:installLocation来明确这一

我正在开发一个应用程序,我想强制用户在内部存储器中安装此应用程序。应用程序不能安装在SD卡上

如果您有任何建议和想法,我们将不胜感激
谢谢U无需阅读文档

但是,如果您确信您的应用程序永远不应该安装在外部存储上,那么您应该通过声明值为“internalOnly”的android:installLocation来明确这一点

U不读取文档

但是,如果您确信您的应用程序永远不应该安装在外部存储上,那么您应该通过声明值为“internalOnly”的android:installLocation来明确这一点


检查中的android:installLocation


编辑:从标题中的问题开始,我以为您想强制用户在SD卡上安装


编辑:从标题中的问题开始,我认为您想强制用户在主文件中的SD卡上安装,请执行此操作 用于SD卡

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.emx.jamalert"
    android:installLocation="preferExternal">

用于内部存储器

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.emx.jamalert"
    android:installLocation="Internal">

在Mainfest文件中执行此操作 用于SD卡

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.emx.jamalert"
    android:installLocation="preferExternal">

用于内部存储器

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.emx.jamalert"
    android:installLocation="Internal">