Skip to content

Instantly share code, notes, and snippets.

@SerggioC
Created August 11, 2022 14:16
Show Gist options
  • Save SerggioC/5f26c24c8b7520c17a494b095d74ca1f to your computer and use it in GitHub Desktop.
Save SerggioC/5f26c24c8b7520c17a494b095d74ca1f to your computer and use it in GitHub Desktop.
get Uri from Android assets file
Uri fontUri = new Uri.Builder()
.scheme(ContentResolver.SCHEME_ANDROID_RESOURCE)
.authority(BuildConfig.APPLICATION_ID)
.path(String.valueOf(R.font.roboto_regular))
.build();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment