¿Hay alguna forma de enumerar las configuraciones regionales instaladas en Android?

Soy consciente de java.util.Locale y Locale.getAvailableLocales() and I'm also aware of the Settings.ACTION_LOCALE_SETTINGS intent. Neither of these accomplish what I need. Locale.getAvailableLocales() returns all languages supported by the Android device and I need the list of locales for something special (not related to switching) so the intent doesn't help. The list that is shown for that intent is what I need though.

I've looked through the Android source for the Settings app and found the relevant code, but in using the code in the LocalePicker's onCreate method, I am still seeing all locales supported. Is there anyway to get that list? Am I missing something in just ripping that code from the LocalePicker?

preguntado el 30 de enero de 12 a las 19:01

1 Respuestas

Si llamas

Locale[] locales = Locale.getAvailableLocales();

You'll get an array of Locales, then use

locale.toString();

to get the locale name.

Respondido 19 Abr '12, 20:04

The problem I'm having is that that doesn't return the list of instalado locales; it returns a list of all apoyadas locales. - JR García

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.