相关疑难解决方法(0)

使用Intents从Android上的照片库中选择多个图像

@参见/sf/answers/1052066081/

我试图从图库中选择图像,但我只找到了选择单个图像的方法.

Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);
photoPickerIntent.setType("image/*");
startActivityForResult(photoPickerIntent, 1);
Run Code Online (Sandbox Code Playgroud)

有没有办法选择多个图像?

java android image gallery

29
推荐指数
2
解决办法
3万
查看次数

在Android图库中选择多个图像

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

使用以下代码成功打开图库.

Intent intent = new Intent();
intent.setType("image/*");
intent.setAction(Intent.ACTION_GET_CONTENT);
startActivityForResult(Intent.createChooser(intent,"Select Picture"), SELECT_PICTURE);
Run Code Online (Sandbox Code Playgroud)

但我只能从图库中选择一个图像.所以请建议我如何从内置的库中选择多个图像.

提前致谢 !!!

android image-uploading android-gallery

10
推荐指数
1
解决办法
4万
查看次数