Typically in Android development you know your resource identifiers (e.g. R.string.hello_world). But if you ever wanted to list out the available resources by enumerating the valid IDs (without trying every Int), here’s the code I came up with for it: