title: Android - Get List of supported Locales
body: <p>I have to implement <code>AutoComplete TextView</code> for all the supported <code>locales</code> of Android Device. I tried the following:</p>
  
  <pre><code> public class AutoCompleteView extends Activity{
  
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(this,
              android.R.layout.simple_dropdown_item_1line, Locales);
      AutoCompleteTextView textView = (AutoCompleteTextView)
              findViewById(R.id.locale_list);
      textView.setAdapter(adapter);
  }
  static Locale[] locales = Locale.getAvailableLocales();
  private static final String[] Locales = ;
  }
  </code></pre>
  
  <p>I am able to get the locales using <code>Locale[]</code>. In the last line of code, How to parse that to <code>String[] Locales</code>.. Please help me friends....</p>