Search code examples
androidandroid-intentandroid-gallery

Android open image in gallery with slide through images


I am developing Android camera app, and would like to have feature that is in most of camera apps:

Clicking on the preview icon opens the gallery, that shows current photo and allows to swipe through all images in the camera folder.

When I use Intent.ACTION_VIEW, the gallery shows only 1 image, without possibility to look through other photos in the directory.

Are there any extra flags for intent Intent.ACTION_VIEW to get such behavior?

Is there any workaround to get such behavior?


Solution

  • Are there any extra flags for intent Intent.ACTION_VIEW to get such behavior?

    No.

    There is no requirement that an Android device have an app that is capable of "shows current photo and allows to swipe through all images in the camera folder". For those devices that happen to have such an app, there is no standard Intent structure that demands that the app "shows current photo and allows to swipe through all images in the camera folder".

    Is there any workaround to get such behavior?

    Write your own UI for this.