title: Display image with image location in string
body: <p>I am trying to display an image in android. I have made a new layout with a imageview called "<strong>image</strong>". the string in question is "<strong>SelectedImage</strong>=/storage/sdcard0/DCIM/Camera/IMG_20130602_133933.jpg" the code looks something like this:</p>
  
  <pre><code>ImageView imageView1 = (ImageView) findViewById(R.id.imageView1);
      BitmapFactory.Options options = new BitmapFactory.Options();
      options.inSampleSize = 2;
      Bitmap bm = BitmapFactory.decodeFile(SelectedImage, options);
      imageView1.setImageBitmap(bm); 
  setContentView(R.layout.image);
  </code></pre>
  
  <p>when I run it it crashes. the log says </p>
  
  <pre><code>06-08 21:24:41.192: I/System.out(7642): Not a DRM File, opening notmally
  06-08 21:24:41.192: I/System.out(7642): buffer returned 
  06-08 21:24:41.232: D/AndroidRuntime(7642): Shutting down VM
  06-08 21:24:41.232: W/dalvikvm(7642): threadid=1: thread exiting with uncaught exception (group=0x414c1438)
  </code></pre>