title: MediaStore.Images.Media.getBitmap and out of memory error
body: <p>My code code is:</p>
  
  <pre><code>public Bitmap loadPhoto(Uri uri) {
      Bitmap scaled = null;
      try {
      scalled = Bitmap.createBitmap(
        MediaStore.Images.Media.getBitmap(getContentResolver(), uri),
        0,0,90, 90);
  
      if (scaled == null) { return null; }
      } catch(Exception e) { }
      return scaled;
  }
  </code></pre>
  
  <p>After this. I display scaled in ImageView. Every image comes from the device camera.</p>
  
  <p>Every time, I get error: <strong>out of memory</strong> after I display three photos from camera. How to solve this?</p>