O'Reilly logo

Expert Android by Satya Komatineni, Dave MacLean

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter    11

Simple Search Suggestion Provider

We explored the user experience of the Android search in Chapter 10. There, we explained how search applications can offer suggestions in response to user-entered search text. The components of the search applications that respond with suggestions are called suggestion providers. This chapter introduces the suggestion providers and explores a pre-built suggestion provider called SearchRecentSuggestionsProvider . In the next chapter, we will show you how to write a custom search suggestion provider from scratch.

When you are writing a suggestion provider, there are three main pieces to be concerned with. The first is a suggestion provider Java class that is responsible for returning those suggestions ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required