In this android example android  front and back camera switching and get the image from gallery to show to gridview below of camera preview images