the suggestion list of my street autoCompleteTextView that is populate from simple cursor adapter has to be changed according the city that the user chose. I tried to use functions:
((SimpleCursorAdapter((AutoCompleteTextView)activity.findViewById(R.id.street)).getAdapter()).swapCursor(cursor);
((SimpleCursorAdapter((AutoCompleteTextView)activity.findViewById(R.id.street)).getAdapter()).changeCursor(cursor);
((SimpleCursorAdapter)((AutoCompleteTextView)activity.findViewById(R.id.street)).getAdapter()).notifyDataSetChanged();
and also invalidate()
but the suggestion list still shows the result of the first cursor and not the new one.
please help me, what am I missing??
my mistake was that I changed the query for the cursor adapter but didn't change the query for the validator
. sorry for the False alarm..