Robert Ly | 055e3f2 | 2012-02-03 11:00:47 -0800 | [diff] [blame] | 1 | page.title=Adding Search Functionality |
Scott Main | 1c2dea0 | 2013-04-10 18:59:29 -0700 | [diff] [blame] | 2 | page.tags="searchview","database" |
| 3 | |
Robert Ly | 055e3f2 | 2012-02-03 11:00:47 -0800 | [diff] [blame] | 4 | trainingnavtop=true |
| 5 | startpage=true |
Robert Ly | 055e3f2 | 2012-02-03 11:00:47 -0800 | [diff] [blame] | 6 | |
| 7 | @jd:body |
| 8 | |
| 9 | <div id="tb-wrapper"> |
| 10 | <div id="tb"> |
| 11 | <h2>Dependencies and prerequisites</h2> |
| 12 | |
| 13 | <ul> |
| 14 | <li>Android 3.0 or later (with some support for Android 2.1)</li> |
| 15 | |
| 16 | <li>Experience building an Android <a href="{@docRoot}guide/topics/ui/index.html">User |
| 17 | Interface</a></li> |
| 18 | </ul> |
| 19 | |
| 20 | <h2>You should also read</h2> |
| 21 | |
| 22 | <ul> |
| 23 | <li><a href="{@docRoot}guide/topics/search/index.html">Search</a></li> |
| 24 | |
| 25 | <li><a href="{@docRoot}resources/samples/SearchableDictionary/index.html">Searchable |
| 26 | Dictionary Sample App</a></li> |
| 27 | </ul> |
| 28 | </div> |
| 29 | </div> |
| 30 | |
| 31 | <p>Android's built-in search features offer apps an easy way to provide a |
| 32 | consistent search experience for all users. There are two ways to implement search in your app |
| 33 | depending on the version of Android that is running on the device. This class covers how to add |
| 34 | search with {@link android.widget.SearchView}, which was introduced in Android 3.0, while |
| 35 | maintaining backward compatibility with older versions of Android by using the default search |
| 36 | dialog provided by the system.</p> |
| 37 | |
| 38 | <h2>Lessons</h2> |
| 39 | |
| 40 | <dl> |
| 41 | <dt><b><a href="setup.html">Setting Up the Search Interface</a></b></dt> |
| 42 | |
| 43 | <dd>Learn how to add a search interface to your app and how to configure an activity to handle |
| 44 | search queries.</dd> |
| 45 | |
| 46 | <dt><b><a href="search.html">Storing and Searching for Data</a></b></dt> |
| 47 | |
| 48 | <dd>Learn a simple way to store and search for data in a SQLite virtual database table.</dd> |
| 49 | |
| 50 | <dt><b><a href="backward-compat.html">Remaining Backward Compatible</a></b></dt> |
| 51 | |
| 52 | <dd>Learn how to keep search features backward compatible with older devices by using.</dd> |
| 53 | </dl> |