(ANDROID), which controls the user's language

I have a multilingual application. I want to give the user the ability to control which language to use. this means that even if he has English, he can use another language if he wants. How can I change the locale language? (for the application) Thank you ....

+9
android locale
Jan 16 '10 at 17:34
source share
2 answers

Android does not allow you to change the language standard of your application; this is done at the system-wide level.

I would suggest that it makes more sense than installing a language in several separate applications.

Edit, 2010-03-09:
Apparently, I am mistaken that this is not possible for every application.

Here's a question showing that you can change the locale - apparently for activity. In this case, you need to take care of the screen rotation and other configuration changes manually, since otherwise the Activity will restart and return to the original Configuration when something changes.
Changing the locale inside the application itself
Android - Force locale copied with orientation changes

+5
Jan 16 '10 at 20:08
source share

Some applications, such as BetterKeyboard , must change some system settings to work. Instead of changing it themselves, they have a button that sends the user to the exact window where the information needs to be changed. I assume this is done using Intent . If I were you, I would try to achieve this. If the user wants to change his language, send him / her to the locale settings of his phone.

+2
Jan 17
source share



All Articles