I have created a function to view images in a single view using following Intent.
Intent intent = new Intent();
intent.setDataAndType(Uri.fromFile(new File(temp.getPath())), "image/*");
I got the answer. Actually, I was not able to swipe the images to see next one because the default gallery app doesn't knew that more image exists in that path. So I notified the media resolver using broadcast intent and then I was able to swipe images.