get string resource in javaandroid code example Example: how to get string value in java in android String str =getResources().getString(R.string.mess_1);