title: Extracting and using Image Thumbnail from larger picture in android app
body: <p>I'am working on a project and I need to create an interface such that a larresge number of picture are visible to user in a Thumbnail version and when the user clicks the Thumbnail original picture pops up.
  When I use the original pictures in a bound ImageView (say layout_width and layout_height of 100 dp each) then the app is crashing.
  I have the res id (<code>R.drawable.imageID</code>) of the original images.
  So is there a way through coding such that my app does not crash and show Images in thumbnail size and also keep the original image or I will have to load resized smaller images to the res directory of the app??
  What is the coding way to get res id to Thumbnails of original Images??</p>