Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/214.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中从Gallery中选择多个图像,并用PHP将其上载到服务器_Php_Android_Image Uploading - Fatal编程技术网

在Android中从Gallery中选择多个图像,并用PHP将其上载到服务器

在Android中从Gallery中选择多个图像,并用PHP将其上载到服务器,php,android,image-uploading,Php,Android,Image Uploading,我正在使用一个应用程序,该应用程序具有一个功能,可以从android内置的Gallery/Camera中选择多个图像 库已使用以下代码成功打开 但我只能从图库中选择一张图像。因此,请建议我如何从内置图库中选择多个图像并保存到服务器。是如何从列表视图中选择多个项目。 是如何列出目录的内容 因此,列出内容,并显示它。完成了,很简单。非常感谢。 Intent intent = new Intent(); intent.setType("*/*"); intent.setAction(Intent.AC

我正在使用一个应用程序,该应用程序具有一个功能,可以从android内置的Gallery/Camera中选择多个图像

库已使用以下代码成功打开

但我只能从图库中选择一张图像。因此,请建议我如何从内置图库中选择多个图像并保存到服务器。

是如何从列表视图中选择多个项目。 是如何列出目录的内容

因此,列出内容,并显示它。完成了,很简单。

非常感谢。
Intent intent = new Intent();
intent.setType("*/*");
intent.setAction(Intent.ACTION_GET_CONTENT);
intent.addCategory(Intent.CATEGORY_OPENABLE);
startActivityForResult(Intent.createChooser(intent,"Select Picture"), SELECT_PICTURE);