title: Android - Resource Bitmap uses more memory than Bitmap from file
body: <p>I noticed something odd. If I open an image (1.6mb) from Drawable Resource, the app crashes with the <code>OutOfMemory</code> error, however, if I open the same image which is saved on SD Card, the app does not crash.</p>
  
  <p>What is the effect of the two?</p>
  
  <p><strong>Solution:</strong></p>
  
  <p>Place images in <strong>/drawable-nodpi</strong> folder and not <strong>/drawable</strong></p>
  
  <p><strong>Cause:</strong></p>
  
  <blockquote>
    <p>pictures in "/drawable" generic folder are considered by the system like "/drawable/mdpi". So the images are resized when used by the system, causing the OutOfMemory error.</p>
  </blockquote>