title: How to get scaled bitmap with respect to screen size with out getting Out of memory exception
body: <p>In my activity I am creating a Bitmap of the width and height same as the device resolution (width and height )</p>
  
  <p>what I am doing </p>
  
  <blockquote>
    <p>Bitmap mBitmap = Bitmap.createBitmap(screenWidth, screenHeight,
    Bitmap.Config.ARGB_8888);</p>
  </blockquote>
  
  <p>and screenWidth and screenHeight is </p>
  
  <pre><code>    screenHeight = displaymetrics.heightPixels;
      screenWidth = displaymetrics.widthPixels;
  </code></pre>
  
  <p>Now if I make this bitmap I get my heap goes up to 19mb , which is not so good.</p>
  
  <p>So tell me 2 things </p>
  
  <p><strong>1. What is a good way of creating the bitmap with respect to screen with and height with minimum memory consumed</strong> </p>
  
  <p><strong>2. How can I destroy the bitmap after using it ?</strong></p>
  
  <p>Please provide me a little source code or link of source code. </p>