Java tutorial
//package com.java2s; //License from project: Apache License import android.net.Uri; public class Main { public static Uri getResUri(int resId) { return Uri.parse("res://xxyy/" + resId); } }