I am developing an application that implements a search provider. The behaviour that I am trying to accomplish is if an item is not found in the database, I want an item to show up in the search suggestions list that says something like
"select to add " + query + " to the database".
I have researched this endlessly, I have read all of the android search framework developer documentation, and I have searched on Google to no avail.
The only thing I could think of to accomplish this was in the database adapter, if no results are found create a MatrixCursor
with the string I described above and the query however, this seems a little messy.
I would also somehow need to make it so that this item has a different Action Intent than a normal suggestion, as I need it to take the user to a page to add the item to the database.
This seems like a fairly reasonable thing to include in an application, I am not sure if I am missing something.