Android 中从res/values/strings.xml中读取具体的字符串的方法
正确的解法:
String mess = getResources().getString(R.string.mess_1);
另外一种:
you can simplify that to
this.getString(R.string.some_id)
if you're already in a Context (Activity or Service
正确的解法:
String mess = getResources().getString(R.string.mess_1);
另外一种:
you can simplify that to
this.getString(R.string.some_id)
if you're already in a Context (Activity or Service