title: Monodroid BitmapFactory.DecodeFileDescriptor Bitmap always null
body: <p>I use the following method to prevend a outofmemory exception, but the Bitmap ist always null. Has anybody an idea?</p>
  
  <pre><code>public Bitmap readBitmap(Android.Net.Uri selectedImage) {
  
          Bitmap bm = null;
          BitmapFactory.Options options = new BitmapFactory.Options();
          options.InSampleSize = 9;
          AssetFileDescriptor fileDescriptor = null;
          try {
              fileDescriptor =  this.ContentResolver.OpenAssetFileDescriptor(selectedImage,"r");
          } catch (FileNotFoundException e) {
              Toast.MakeText(this, e.Message, ToastLength.Long);
          }
          finally{
              try {
                  bm =  BitmapFactory.DecodeFileDescriptor(fileDescriptor.FileDescriptor, null, options);
                  fileDescriptor.Close();
              } catch (IOException) {
              }
          }
          return bm;
  }
  </code></pre>