【发布时间】:2017-03-17 11:38:19
【问题描述】:
我正在尝试将图片库中的图片加载到我的应用程序文件夹中。我正在使用Recyclerview
通过使用此意图,我可以从图库中选择多个图像,但不知道如何在我的应用程序文件夹中获取图像。请注意,我的应用程序中有不同的文件夹。
private void OpenFromGallery() {
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);`}
【问题讨论】: