I was trying to define a static hash table that makes use of resources, but I got stonewalled by the impossibility of accessing resources statically. Then I realized
How can I define a map in XML?
bar baz
Put this in res/xml/, and load it using getResources().getXml(). Walk the events to build up a HashMap.
res/xml/
getResources().getXml()
HashMap