Cursor cursor = contentResolver.query(uri, null, null, null, null);
cursor.moveToFirst();
String filePath = cursor.getString(cursor.getColumnIndexOrThrow(MediaColumns.DATA));

不像其他文件夹,如相机,截图,Foursquare等..,Picasa文件夹中的图片有更少的no.of列,其中_data不存在

因此我得到了例外:

java.lang.IllegalArgumentException: column'_data' does not exist

在android中有一个名为 picasa_id 的列和一个常量:

MediaStore.Images.Media.PICASA_ID

这有助于获得正确的图像路径吗?

此外,如果我必须从文件夹下载图像并保存在my-app-images文件夹中,然后获取实际路径 . How will I even know that the image URI is from Picasa?