5

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?

ticofab
  • 7,551
  • 13
  • 49
  • 90

2 Answers2

0

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.

Sagar Pilkhwal
  • 3,998
  • 2
  • 25
  • 77
-1

None worked, so I ended up using one of the open source libraries for Android: Universal Image Loader.

ticofab
  • 7,551
  • 13
  • 49
  • 90