androidkotlinandroid-permissionsimage-galleryfilechooser

Loading all images & videos from gallery in the app activity & selecting some of them


I want to choose multiple media (videos or images) from gallery on clicking a button, but only, after showing all the media from the gallery in activity of my app only, (without opening my phone default gallery) & then, show them in the Recycler View (grid view).

Then, selecting images of Videos from them. I am a beginner in android, also haven't find any help from other resources. Please guide me in the same & provide a proper solution.


Solution

  • hi I can understand your problem what you want is an image/Video picker library .its bad idea to build it on your own as a beginner so my recommendation would be to choose community build libraries which will make your job much easier

    link of a few Image Picker libraries https://android-arsenal.com/tag/157 you can google to find more libraries

    follow the instruction from their Github page and try to implement them in your project it will be much easier

    my recommendation would be to use this library https://github.com/Mindinventory/Lassi-Android as this library provides both image and video to be picked