Question

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??

Was it helpful?

Solution

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..

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top