This example shows how create Image Gallery in android.
Algorithm:
1.) Create a new project by File-> New -> Android Project name it ImageGalleryExample.
2.) Add some sample .png image files to res/drawables folder.
3.) Write following into main.xml file: