use string-value android code example
Example 1: android get string value
String string = getString(R.string.hello);
Example 2: how to get string value in java in android
String str =getResources().getString(R.string.mess_1);
String string = getString(R.string.hello);
String str =getResources().getString(R.string.mess_1);