Retrieving StringArray resource depending on the clicked button

view story

http://stackoverflow.com – I want to design a ListView that will be populated from a StringArray resource depending on which button was clicked. The array name will be retrieved and put into the getStringArray method like 'dynamically', after the button was clicked. I'm trying this method to get the identifier by name: getResources().getIdentifier(String name, String defType, String defPackage); but when I am constructing the array name as a String made of clicked button ID and some other Strings like this: Bundle extras = getIntent().getExtras(); Integer buttonId = extras.getInt("ButtonId"); String resourceName = (HowTos)