I know that I can open an image using the default android image Viewer, for example with new Intent(Intent.ACTION_VIEW)
etc.
If I open the image and then I swipe left/right I'll see the other images saved on the device.
For example, if I open one of whatsapp images, swiping left/right I'll see all other images saved inside whatsapp folder.
Is there a way to pass the default android image Viewer a List
/Array
of uri, in order to prevent users from swiping left/right and see all the images on the device?
I want the user to swipe left/right and see only images I allow him to see.
Thank you in advance
try this you can use android.support.v4.view.ViewPager
demo code
now create
ImageAdapter
like thisBest scenario is you can use
viewpager
with your image array or image list and you can get the functionality of swipe left or right, Nothing you need to do more just implementviewpager
and create one adapter to fetch image when getItem event called,