This question has been asked before but I'm afraid answers might be outdated. How can I use the native gallery app (say API 14 on) to achieve multiple image selection like WhatsApp?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
do you mean:
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);
Note: the EXTRA_ALLOW_MULTIPLE option is only available in Android API 18 and higher.
This link talks about creating custom image picker with multiple select.
回答2:
None worked, so I ended up using one of the open source libraries for Android: Universal Image Loader.