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    12

Custom Search Suggestion Provider

Android search is too flexible not to customize it. Because we used a pre-built suggestion provider in the last chapter, many customizable features of a suggestion provider were hidden in the SearchRecentSuggestionsProvider and not discussed. We explore these details in this chapter by implementing a custom suggestion provider called a SuggestUrlProvider.

We start by explaining how SuggestUrlProvider is expected to work. We will give you all the necessary code snippets to implement the provider, and these snippets should provide a detailed idea of how to build a custom suggestion provider. We will also show you how this custom suggestion provider is put to use by showing it in a sample application. ...

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