Android: Retaining data, multiple language support and retaining last applied settings when the app reloads -


i have developed an android app takes text input orientation changes the textview becomes empty. want add multiple language support app through settigs button(settings.xml).

is there way fix textview issue , retain last language used in next app launch?

e.g. if set french new language settings. next time open app language should french not english(the default language).

can me fix this?

thank you

you need use sharedpreference once setting set 1 language store selected in sharedpreference can use next time. everytime app restarts can check language set.

for orientation change issue may use different layout landscape portrait. avoid can use onsaveinstancestate , onrestoreinstancestate


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -