getResourceUri

fun Context.getResourceUri(resourceId: Int): Uri

Returns an uri to the given resourceId. This uri is NOT safe to store outside of app lifecycle!

The uri may change on app update or relaunch.