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.
android android-intent image scroll photo
Waterbyte Jan 17 '16 at 13:30 2016-01-17 13:30
source share