Skip to content

Instantly share code, notes, and snippets.

@pantos27
Created Oct 18, 2017
Embed
What would you like to do?
Android get resource uri
private Uri getResourceUri(Resources resources, int resourceID) {
return Uri.parse("android.resource://"+resources.getResourcePackageName(resourceID)+"/"+
resources.getResourceTypeName(resourceID) + '/'
+ resources.getResourceEntryName(resourceID) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment