title: How can I tell the dimensions of a bitmap before loading it? Can I load just a "preview" or "thumbnail" version?
body: <p>I'm trying to load and display a screen that shows thumbnails of several photos. When I try to load them all as Bitmap's, I often get an OutOfMemoryError because the bitmaps are somewhat large, and I'm loading 10-20 of them depending on the screen size. The photos aren't all the same size, so depending on which subset I'm about to show, the memory may or may not be enough to load them all, making my app crash erratically (sometimes it crashes mid-scroll as the user is scrolling the photo grid).</p>
  
  <p>Note: since I'm showing thumbnails, I don't actually require the loaded bitmaps to come at full resolution. Is there a way to tell what's the size of a bitmap before loading it, and, also, is there a way to load just a "preview" or a downsampled version of a bitmap on disk so I can save memory and avoid hitting the memory limit?</p>