title: android: get image dimensions without opening it
body: <p>I want to get width and height (in pixels) of images which are stored on the sdcard, before loading them into RAM. I need to know the size, so I can downsample them accordingly when loading them. Without downsampling them I get an OutOfMemoryException.</p>
  
  <p>Anyone knows how to get dimensions of image files?</p>