onei have an ArrayAdapter that implements the list of autocomplete proposals for an EditText field.
AutoCompleteTextView ediFrom = (AutoCompleteTextView) findViewById(R.id.ediFrom);
ArrayList<String> autoCompleteLib = new ArrayList<String>();
autoCompleteFromAdapter = new AutoCompleteAdapter(this, android.R.layout.simple_dropdown_item_1line, autoCompleteLib);
ediFrom.setAdapter(autoCompleteFromAdapter);
During runtime in a TimerTask (so a background thread) i'm adding elements to this list:
synchronized (lock)
{
autoCompleteLib.add(newAddress);
}
Now i want to update the autocomplete proposals list. Is it enough / correct to call "notifyDataSetChanged()" once after all adding action is done, or do i have call "notifyDataSetChanged()" after each "autoCompleteLib.add" ?
thx for your help