I have to implement AutoComplete TextView
for all the supported locales
of Android Device. I tried the following:
public class Aut
Sorry for late reply
Try this
Locale[] locales = Locale.getAvailableLocales();
ArrayList<String> localcountries=new ArrayList<String>();
for(Locale l:locales)
{
localcountries.add(l.getDisplayLanguage().toString());
}
String[] languages=(String[]) localcountries.toArray(new String[localcountries.size()]);
I hope this will help you.