문제

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top