android - Get which locales have their own values folder -


i'm implementing multiple language support application. in default values folder have strings english locale. have folder swedish values-sv. want let user able choose locale manually, need display list supported languages.

is there way locales supported(have own values folder)?

so far have:

string[] languages = getresources().getassets().getlocales();

but returns languages supported android version not make sense show long list. need languages supported application.

well in can show spinner/dialog chooser user items of supported languages have , can tell app resources have select

suppose if have spanish , englih language:

show spinner values i.e: spanish,english upon user selected value set locale spanish or either english


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -