Is Android device's locale based solely on Language setting? -


if device chooses french language, locale automatically set french well? or depend on user's current location?

for ios, language , region separate settings while in android, seems choose language not region.

comparison: android - chooses french language, locale becomes fr-fr ios - chooses english language, french region, locale becomes en-fr

for android there other way retrieve device's region?

i have been googling around couldn't find source of information on topic yet.

in android can select portuguese (portugal) or portuguese (brasil) translates pt-pt , pt-br. in case there 2 different languages, find redundant, because better way of handling separate languages , regions.

however can programmatically change language , region, setting:

new locale("pt, "pt"); 

you can read more programmatically changing language here:


Comments

Popular posts from this blog

serialization - Convert Any type in scala to Array[Byte] and back -

matplotlib support failed in PyCharm on OSX -

python - Matplotlib: TypeError: 'AxesSubplot' object is not callable -