title: Android cursor getColumnIndexOrThrow gave me an error
body: <p>I am currently using managedQuery to query the images in the sdcard by using the mediastore but it couldn't get through the function getColumnIndexOrThrow and pop out a error dialog on the emulator.</p>
  
  <p>image_cursor = this.managedQuery(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, null, null, null, null);</p>
  
  <pre><code>    if (image_cursor == null)
      {
          TextView test = (TextView) this.findViewById(R.id.textView1);
          test.setText("null");
      }
      while ( image_cursor.moveToNext()) {
          if (image_cursor.getCount() &gt; 0)
          {
              TextView test = (TextView) this.findViewById(R.id.textView1);
              test.setText("entered");
          int index = image_cursor.getColumnIndexOrThrow(MediaStore.Images.Media.CONTENT_TYPE);
  
          //  TextView test = (TextView) this.findViewById(R.id.textView1);
  
          //  test.setText(image_cursor.getString(index));
          }
      }
  }
  </code></pre>
  
  <p>Anyone have this problem before?</p>