Android : String resource with code

Android : String resource with code
String mystring = getResources().getString(R.string.mystring);