O'Reilly logo

Hello, Android, 4th Edition by Ed Burnette

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

The Suggest Example

We’re going to create a program that calls the Suggest web service and displays the results just like a search engine or smart address bar would. To use this program, simply start typing a phrase. As you type, the program will use the Suggest web service to fetch suggestions about what comes next.

images/fig.suggest.png

To create this application, start with a “Hello, Android” application using these parameters:

 
Application name: Suggest
 
Company Domain: example.org
 
Form factors: Phone and Tablet
 
Minimum SDK: API 16: Android 4.1 (Jelly Bean)
 
Add activity: Blank Activity
 
Activity Name: MainActivity
 
Layout Name: activity_main
 
Title: Suggest ...

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