Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/212.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.Intent gallery中具有多个选项_Android_Android Intent - Fatal编程技术网

预选';全部';默认情况下,在android.Intent gallery中具有多个选项

预选';全部';默认情况下,在android.Intent gallery中具有多个选项,android,android-intent,Android,Android Intent,请帮忙 如何在原生android gallery中为用户进行预选 这是一个密码 Intent galleryIntent = new Intent(Intent.ACTION_GET_CONTENT); galleryIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); galleryIntent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, multiple);

请帮忙

如何在原生android gallery中为用户进行预选

这是一个密码

Intent galleryIntent = new Intent(Intent.ACTION_GET_CONTENT);
            galleryIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
            galleryIntent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, multiple);
            galleryIntent.addCategory(Intent.CATEGORY_OPENABLE);
            final Intent chooserIntent = Intent.createChooser(galleryIntent, "Pick an image");
            activity.startActivityForResult(chooserIntent, IMAGE_PICKER_REQUEST);
其工作正常,但已选择初始阶段0文件


谢谢

在使用
操作获取内容时,没有办法预先选择任何内容
,更不用说预先选择所有内容了


还请注意,
ACTION\u GET\u CONTENT
未绑定到gallery应用程序,并且在~10000个Android设备型号中没有单一的“本机Android gallery”应用程序。

用户在意向中选择路径后,是否可以进行编程选择?。。thx@ShamilSungatullin:不,对不起。