17.03.2011 14:52, mac-systems пишет:
Thanks a lot.
Im a bit confused about the fact that the (Subclass) of
ResourceCursorAdapter needs an Cursor in its Constructor
as i do the query in the runQueryOnBackgroundThread Method. Any hint
why this is done like this ?

Just my view on this --

In an auto complete view, you don't need any data until the user types something, and then it's always filtered.

However, not all cursor based adapters work that way: some - most - by default show the entire data set. This is why cursor adapters take Cursor as a constructor parameter: to provide unfiltered data without having to implement filtering methods.

Using a null cursor in the adapter's constructor works fine for auto complete view.

-- Kostya

regards,
Jens




--
Kostya Vasilyev -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to