함수(String  str)

위 함수에...
R.string.XXX 에 등록한 문자열을 어떻게 넘겨주나요?

함수(R.string.XXX) 식으로 사용하면 안되는것 같은데요, 어떻게 하는지요?