急!如何在java代码中获取string.xml中的字符串!
String str = Resources.getSystem().getText(com.derbysoft.hotel.R.string.hello).toString();
String str = Resources.getSystem().getString(R.string.hello);
上面2个都试过了,抛异常
NotFoundException
说找不到对应的ID,但是string.xml文件中明明有,R文件中也有ID
不知道什么原因,大家帮帮忙看下!