dimanche 25 octobre 2015

How to show suggestions based on SQLite database in my android app

I am in the middle of my first simple android app and I faced a problem. first, i should tell you that I want to create a dictionary with suggestions showed under the search view, so user could choose one of them. I already implement the search configuration and search activity and they related to each other, so I could receive the typed text in the search view through the intent.getStringExtra(SearchManager.QUERY) method.

the problem is that I do not know the rest of process to show the suggestions from application database (which is a SQLite database in the application)?

also, I am not sure about the correctness of search configuaration file and its elements espesially these three:

android:searchSuggestSelection, android:searchSuggestIntentAction, android:searchSuggestIntentData

I visited android.developer.com for documentation about it, but I can't understand how to implement my own app.

Aucun commentaire:

Enregistrer un commentaire