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 To Unlock Locked iPod


How To Unlock Locked iPod

http://bit.ly/hddpp

http://bit.ly/hddpp

How To Unlock Locked iPod 

 


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

2. ALSA audio only on the headphone and not on speaker

Hi,

When the alsa_aplay is used, I get the sound only on the headphone and
not on the speaker of the sound card connected to my hardware.

I have used the alsa_amixer as below to set up the sound.
alsa_amixer set Master 100 unmute
alsa_amixer set Headphone 100 unmute
alsa_amixer set PCM 100 unmute.

Any suggestions what else could be set in order to obtain the sound
working from the speakers?

Thanks.

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. WIFI tidak bisa terhubung??

4. Host is unresolved error

5. How can I change the look of the front screen of the Android

6. Gears support for Androids WebView

7. Why does getPadding() of NinePatchDrawable throw a NullPointerException?