I've read all of the documentation online about building search interfaces and adding custom suggestions... but I'm still unclear on how this works. The documentation says that I must "Build a table (such as in an SQLiteDatabase) for your suggestions and format the table with required columns". I'm assuming the system will eventually fill this table with the appropriate suggestions on its own... but which process/class is responsible for this, and when will the actual insertions occur (before any query is made by the user, after a query has been made by the user, etc.)?
And while I'm asking a question up here, if someone could clarify the difference between an AutoCompleteTextView
and a SearchView
w/ custom suggestions... that'd be awesome. AutoCompleteTextView
seems suspiciously easy to implement compared to the SearchView
(which requires changes to be made to the ContentProvider
, SQLiteDatabase helper class, etc.).