【发布时间】:2015-03-23 09:17:44
【问题描述】:
在我的应用程序中,我试图从图库中选择多个图像,并且我想移动到我的文件夹。
我尝试了一些示例编码,但它无法正常工作。
我使用 android 代码来选择多个图像,但如何在 onActivity 结果中获取所有图像。
我已经试过了
Intent intent = new Intent();
intent.setType("image/*");
intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true);
intent.setAction(Intent.ACTION_GET_CONTENT);
startActivityForResult(Intent.createChooser(intent,"Select Picture"), 1);
如何在 OnActivity Result 中选择这些图片
然后我也尝试了this link,但它没有显示画廊中的所有图像,并且在移动后它没有更新画廊
【问题讨论】:
-
stackoverflow.com/a/9396016/4741246 或许它可以帮助您选择多个图像。
标签: android-imageview android-gridview android-gallery