Why might Resources.getString() intermittently return strings from the wrong locale?

后端 未结 3 1209
耶瑟儿~
耶瑟儿~ 2021-02-01 03:21

I have an Android application with English strings in values/strings.xml. For each string in that file, I have an entry in values-ja/strings.xml with the Japanese translation of

3条回答
  •  遇见更好的自我
    2021-02-01 04:23

    I faced the same issue.

    For me, I was trying to get the string (in the onCreate()) before importing language settings from shared preferences (done in the onResume()).

提交回复
热议问题