In this example for android front and back camera switching and get the images from gallery and show that images gridview