How to show offers before the user starts to enter a search?

I created a content provider and search configuration that work fine. When a user enters data, he queries my sqlite database and displays the sentences exactly as I expected.

So far so good.

My problem / question is that I would like the system to call the query () function on the content provider immediately after entering search mode, NOT waiting for the user to start typing. This is due to the fact that I would like to immediately display my own list of offers immediately after entering the search mode (how the Google Play application works).

I am using the Action Bar Sherlock and noticed that the query () function is called on pre-ICS devices exactly as I would like, but is NOT called on ICS + devices.

Any guesses or suggestions?

Thanks!

+4
source share

All Articles