Is there any way to change a R.string programmatically? Because it's throwing an error.
Basically I want to do this:
String parkAdd = getString(R.string.stg_ParkAddress_+id);
Because I have hardcoded strings that are changed according ID.
I tried to do this but don't work:
String parkAdd = getString(R.string.stg_ParkAddress_1);
parkAdd = parkAdd.replace("1",id);
if (!parkAdd.equalsIgnoreCase("")){
tvParkAddress.setText(parkAdd);
}