Skip to content

Instantly share code, notes, and snippets.

Created Oct 18, 2017
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