Enumerating Resources in Android

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:

Author: jeb

Views expressed here are my own and do not necessarily reflect the views of my employer.