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.
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 ... |
Get Hello, Android, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.