0
我想从我的手机内存中选择多个图像使用意图和存储在数组中的uri,但我不知道我该怎么做,请帮助我。从手机中获取多个图像?
我能够得到的只有一个图像的URI,这是我的代码:
Intent intent = new Intent();
intent.setType("image/*");
intent.setAction(Intent.ACTION_GET_CONTENT);
startActivityForResult(Intent.createChooser(intent,"Select Picture"), 1);
protected void onActivityResult(int requestCode, int resultCode, Intent data)
{
super.onActivityResult(requestCode, resultCode, data);
Uri uri=data.getData();
}
使用 “intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE,真);”它允许我选择多个图像,但选择后我怎么能得到所有选定的图像?
https://android-arsenal.com/details/1/2019 –