http://liuyun025.iteye.com/blog/1280838

有时候,我们要用到res/drawable目录下的图片Uri,而这个Uri该如何生存呢?下面就是这Uri的生成方法:

Uri uri =  Uri.parse(ContentResolver.SCHEME_ANDROID_RESOURCE + "://"

+ r.getResourcePackageName(R.drawable.calendar_days_01) + "/"
    + r.getResourceTypeName(R.drawable.calendar_days_01) + "/"
    + r.getResourceEntryName(R.drawable.calendar_days_01));

05-06 09:44