Getting string from other then default language

Posted by Sulabh Gupta on Stack Overflow See other posts from Stack Overflow or by Sulabh Gupta
Published on 2011-06-28T05:46:26Z Indexed on 2011/06/28 8:22 UTC
Read the original article Hit count: 148

Filed under:
|

I am having a problem in accessing Locale string in android. The requirement is:-

I have one string in english(values/string.xml) as well as in korean(values-ko/string.xml). Now i want to show my string in both languages in a single activity.

I don't want to change phone Locale or call Locale.setDefault("ko")

I am trying to call following line but it is not working for me.

getString(R.string.mystring, Locale.KOREAN); (My default language is English)

Please help

© Stack Overflow or respective owner

Related posts about android

Related posts about locale