I need to pass a resource ID to a method in one of my classes. It needs to use both the id that the reference points to and also it needs the string. How should I best achie
If you need to pair a string and an int, then how about a Map?
static Map icons = new HashMap(); static { icons.add("icon1", R.drawable.icon); icons.add("icon2", R.drawable.othericon); icons.add("someicon", R.drawable.whatever); }