How to scroll images viewed using intent in android

I created a function to view images in one view using the following Intent.

Intent intent = new Intent(); intent.setAction(android.content.Intent.ACTION_VIEW); intent.setDataAndType(Uri.fromFile(new File(temp.getPath())), "image/*"); startActivity(intent); 

Opens the default gallery application for viewing images. However, I cannot move on to the next image by sliding the screen, as is usually the case in a simple gallery application. How can i do this? Scenario: I have a grid displaying photo thumbnails. Now, when someone clicks on it, it opens with the intention and is displayed in full screen mode, but to view the next image, the user must go back and then click the next image. What will be the procedure for switching images when a person slides horizontally horizontally.

0
android android-intent image scroll photo
Jan 17 '16 at 13:30
source share
1 answer

I got an answer. In fact, I could not draw the images to see the next one, because the gallery application does not know by default that there are more images in this way. So I notified the media editor using the broadcast, and then was able to draw the images.

0
Jan 24 '16 at 14:56
source share



All Articles