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. VpnServices.apk source and how does it work

Hi all,

I have been searching for the source code for VpnServices.apk - trying
to understand just how this VPN application is implemented such that
root permissions are not required.
I think it is part of the core.jar but the only reference I can find
to it in the Android tree is core.mk

Could someone point me in the right direction and/or explain how the
app. gets at the IP packet stream to implement the security please.

I am very familiar with Linux kernel implementations and IPsec in
general.

Thanks,
Adam

-- 

2. Not running in a graphics capable

Hello,

I compiled a application for ARM board.
The configed vedio driver is framebuffer,and I run it on the AT9261 board.
The error log is

 [0x00004000] FATAL : SYSERR : SERVER :: Not running in a graphics capable
console, and unable to find one : Invalid argument
[s_video_helper_console_open (console.c:176)]

I checked the source and find the error point.

 if (ioctl(s_video_helper_console.fd, VT_OPENQRY, &
s_video_helper_console.vc) < 0) {        //debugf(DSER | DSYS | DFAT,
"s_video_helper_console.fd fail");

             goto error;      }
Is there anything wrong with the kernel config or the file system?
Can you give me some advice to solve this issue.

Thanks a lot.

-- 

3. C2DM - Message to device delivery time

4. Can I use POSIX Message queue in developing platform device driver?

5. How to Customise android Os For supporting regional launguages

6. Greystripe banner.refresh causes null pointer exception

7. flash enable browser on eclair