本文介绍了在 Android Gallery 中选择多张图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

i m working with one application that have one functionality to select multiple images from android inbuilt Gallery/Camera .

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

Gallery is open successfully using below code.

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

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

but i am able to select only One image from Gallery. so please suggest me how to select multiple images from inbuilt gallery .

提前致谢!!!

推荐答案

我参考了这两个链接 链接 1

1:使用 GalleryView 选择多个图像链接 2

但没有得到我正在寻找的 Ans ......但我找到了替代解决方案.从内置图库中获取所有图像并将其设置为我们所有的自定义 Gellery .. 请查看此链接 带有复选框的自定义图库

but not getting Ans for which i m looking for .. but i have found alternative solution . Get all images from inbuilt Gallery and set it all our custom Gellery .. kindly check out this link Custom Gallery with checkbox

希望能帮到你.

这篇关于在 Android Gallery 中选择多张图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-17 15:22
查看更多