Home How do you catch the image URI when selecting multiple images from gallery?
Reply: 1

How do you catch the image URI when selecting multiple images from gallery?

pea poi
1#
pea poi Published in 2018-01-12 21:54:12Z

I have a method that allows you to select multiple images from the native system gallery.

public void selectImages(View view){
    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);
}

How would you go about catching the URI image values?

Fred
2#
Fred Reply to 2018-01-13 09:52:17Z

Use below library for multiple image selection from the gallery. https://github.com/sangcomz/FishBun

FishBun is a highly customizable image picker for Android. Use FishBun in an activity:

FishBun.with(YourActivity).setImageAdapter(new GlideAdapter()).startAlbum();
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.3057 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO