I want to periodically change the suggestions given by an AutoCompleteTextview by getting the list from a RESTful web service, and can\'t get it working smoothly. I set up a
This is how I update my AutoCompleteTextView:
String[] data = terms.toArray(new String[terms.size()]); // terms is a List
ArrayAdapter> adapter = new ArrayAdapter
Now of course, this is static and doesn't deal with an over-the-air suggestions but, I can also suggest you to notify adapter for the changes after you assign it to the AutoCompleteTextView:
adapter.notifyDataSetChanged();
Hope this helps.
-serkan