I want to set autoCompleteTextView in my android application and it display all the places when I enter character in the autoCompleteTextView like Google map . How can I add that type of autoCompleteTextView in my app. I am currently use this code:
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,
android.R.layout.simple_dropdown_item_1line, COUNTRIES);
AutoCompleteTextView textView = (AutoCompleteTextView)
findViewById(R.id.autoCompleteTextView);
textView.setAdapter(adapter);
.
.
private static final String[] COUNTRIES = new String[] {
"Belgium", "France", "Italy", "Germany", "Spain"
};
But is display the places in the string array.
please give me a solution ..