Uri uri = resourceIdToUri(this,R.mipmap.logo);
private static Uri resourceIdToUri(Context context, int resourceId) {
return Uri.parse("/" + context.getPackageName() + "android.resource://" + resourceId);
}
Uri uri = resourceIdToUri(this,R.mipmap.logo);
private static Uri resourceIdToUri(Context context, int resourceId) {
return Uri.parse("/" + context.getPackageName() + "android.resource://" + resourceId);
}
本文标题:miamap转Uri
本文链接:https://www.haomeiwen.com/subject/vwmmuttx.html
网友评论