title: Getting an image from Gallery on from the Picasa//Google + synced folders doesn't work
body: <p>I am trying to get an image from the gallery app from one of the folders from the Google+ synced photos. After selecting the image, the Uri is being passed back correctly. But when I try to get the actual path of that image on the storage device, so that I can use it, it crashes. The problem seems to be specifically with the <strong>picasa content provider</strong>.</p>
  
  <p>Tested on Nexus S and Nexus 7, and other devices as well.</p>
  
  <pre>
  E/AndroidRuntime(14572): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { dat=content://com.google.android.gallery3d.provider/picasa/item/5427003652908228690 }}
  </pre>
  
  <p>Here, the dat field seems to be correctly passing the Uri, but when I try to fetch the image's location, it crashes with the following error.</p>
  
  <pre>
  W/GalleryProvider(14381): unsupported column: _data
  </pre>
  
  <p>Seems that the content provider for Picasa albums doesn't have a _data field.</p>
  
  <p>The code for getting the location is:</p>
  
  <pre>
  // imageUri is the Uri from above.
  String[] proj = { MediaStore.Images.Media.DATA };
  Cursor cursor = context.getContentResolver().query(imageUri, proj,null, null, null);
  int column_index = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);
  cursor.moveToFirst();
  
  String filePath = cursor.getString(column_index);
  cursor.close();
  </pre>
  
  <p>The only columns that seem to be supported for this image are:
  [user_account, picasa_id, _display_name, _size, mime_type, datetaken, latitude, longitude, orientation]</p>
  
  <p>How do we get the actual location of this image. And if we are not supposed to work with this image, <strong>these images shouldn't be shown to the user in the first place.</strong></p>
  
  <p>The Intent to launch the gallery app is:</p>
  
  <pre>
  Intent intent = new Intent();
  intent.setType("image/*");
  intent.setAction(Intent.ACTION_GET_CONTENT);
  </pre>