In my app, i am asking for language, can be either English or German. The selected language and its iso code is saved into preferences. On the basis of selected language i need to change all the texts into corresponding language.
For this, i have created res/values and res/values-de; each folder containing a strings.xml file. Issues are: 1) I am opening camera as well as a screen using opengl. After navigating via both of them, the texts does not change completely into german(if was chosen). Some text values change into German, rest not even on the same page. 2) Even without going through camera and opengl screens, the results are not achieved 100% always but gives a better result always as compared to case 1.
My implementations: 1) in onResume() of splash screen, i am changing locale based on preferences with the help of config.locale(). 2) in manifest file, each activity is set with activity:configChanges="locale". 3) in camera activity and opengl activity, onConfigurationChanged() is overridden in which i am again setting locale as per preferences.
please guide how to solve the locale issue.