2

In our Android app, we have an option for the user to change the language, which means he can select whether he want to use English or Sinhala. The default is always in English. We have one string.xml for English and another for Sinhala.

I was referring Android documents about "localization" but that is not exactly what I am looking for, I can't ask the user to change his phone settings. I also noticed programmatic localization which is discussed in here but most users do not recommend it due to loads of errors (anyway these posts are pretty old)

So, what's the best way of changing the String?XML file, with the preferred language of a user? It seems not easy on Android.

Or, is this is simply not a good idea?

2
  • you should read this.... Here we describe how to open this. stackoverflow.com/questions/37454353/… Commented Dec 8, 2016 at 7:08
  • That method is subjected to issues, as far as I know Commented Dec 8, 2016 at 7:10

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.