I want to change the text on some buttons dynamically. All necessary text is saved at the strings.xml and the reference name is saved in a Json Object.
Anyone knows how i can get the data from strings.xml for my setText function?
JSONObject e = Options.getJSONObject(i);
//The Name for strings.xml
String name = e.getString("name");
Resources res = getResources();
button1.setText(String.format(res.getString(R.string. ??????????? )));