Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

getting list of languages supported by android keyboard

I need to display the list of the all languages which are supported by android keyboard. Now I am using Locale.getAvailableLocales(); method but i am getting language and country constants.

I need all language names only. Is it possible? and how ?.

like image 507
surendra Avatar asked Jul 05 '11 07:07

surendra


1 Answers

How about using Locale.getDisplayName(Locale) on each Locale you get with Locale.getAvailableLocales();?

Returns this locale's language name, country name, and variant, localized to locale.

new Locale("en").getDisplayName(Locale.US) -> English

like image 173
Kuitsi Avatar answered Oct 05 '22 11:10

Kuitsi