AutoCompleteTextView and ArrayAdapter with async update

by ordrune » Fri, 18 Sep 2009 08:47:24 GMT


Sponsored Links
 I have an AutoCompleteTextView using an ArrayAdapter for its data.  I
am trying to asynchronously update the ArrayAdapter, but if there is
text typed into the AutoCompleteTextView the ArrayAdapter will not
update until the text in the AutoCompleteTextView changes.

for example;

actv = AutoCompleteTextView
aa = ArrayAdapter

1) start the application
2) getCount on aa = 0
3) add on aa
4) getCount on aa = 1
5) type "r" into actv
6) getCount on aa = 1
7) add on aa
8) getCount on aa = 1
9) add on aa
10) getCount on aa = 1
11) type "e" into actv
12) getCount on aa = 3

How can I force an update of the data?  I am doing an async update
because I am getting the values to auto complete from a REST call.  I
even tested this manually just by adding two buttons to the Activity
along with the ACTV (one to show me the count and one to add an item).

I tried notifyDataSetChanged on the ArrayAdapter, but that doesn't
seem to do anything.

Thanks

--~--~---------~--~----~------------~-------~--~----~



AutoCompleteTextView and ArrayAdapter with async update

by Tim » Sat, 24 Oct 2009 05:35:03 GMT


 Did you figure this one out?
I have a similar issue:
 http://www.anddev.org/viewtopic.php?p=28428 #28428




--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. How can I invite attendees use calendar app(Eclair)

Hello~

I heard Eclair support Attendee invitation in calendar...but I
couldn't find any APIs.
(there' no send button also.)

It sends mail to Attendees automatically? if then...how can I find
related APIs?

I checked several files...but I couldn't find it.

please help me 
--

2. Custom address fields when switching from Palm OS to Android

I'm completely new to Android OS.  Is there a clean way to transfer
Palm OS address data fields, including "custom" fields, to Android?

I'm running Palm Desktop 6.2 on Win XP.  I can export in these
formats:

Address Book (.aba)
Comma Separated (.csv)
Tab delimited (.tab)
vCard (.vcf)

Thanks in advance!
Tom

--

3. google apps

4. Exchange Active Sync not fully functional

5. How to start activity with long press of search key?

6. Developers, please list changes when posting app updates to Android Market

7. Motorola App Accelerator program - is it a dead end?