<<Unfortunately, this is not a complete worked out example. Could someone forward me a more complete example? I've found lots of code fragments, but no code that shows how to initialise the SimpleCursorAdapter contents, or how it works together with the AutoCompleteTextView. >>
There is also an example in the APi demos with the contacts.~/android-sdk-windows-1.1_r1/samples/ApiDemos/src/com/example/android/apis/view/AutoComplete4.java On Thu, Apr 9, 2009 at 2:32 AM, Paul Moore <[email protected]> wrote: > Hello, > > I have an application that involves reading a text dictionary file with > about 7000 entries, and allowing the user to choose one of these. My first > approach was to allow the user to select one of these by using a > AutoCompleteTextView together with ArrayAdapter<String>. This works, but is > very slow (~10 seconds to update the word list each time the user enters a > character to narrow down the choice). > > I was wondering how to rework it so that I could use a database using a > SimpleCursorAdapter instead. In other words, to hope that a SQL database > could provide a more efficient ordering and access for the elements. > Is this the best way to do it? I've also seen several references to > SQLiteDatabase, but don't know which one to use. > > I found this code fragmant consisting of an extended SimpleAdapter. > http://sacoskun.blogspot.com/2008/08...leadapter.html<http://sacoskun.blogspot.com/2008/08/autocompletetextview-with-simpleadapter.html> > > Unfortunately, this is not a complete worked out example. Could someone > forward me a more complete example? I've found lots of code fragments, but > no code that shows how to initialise the SimpleCursorAdapter contents, or > how it works together with the AutoCompleteTextView. > > Many thanks, > Paul > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

