Scott Main | 50992e8 | 2009-08-29 13:08:18 -0700 | [diff] [blame] | 1 | <p>A sample application that demonstrates Android's search framework.</p> |
| 2 | |
Scott Main | beca3af | 2010-03-25 17:37:25 -0700 | [diff] [blame] | 3 | <p>This application includes a dictionary of words. By invoking the Android search dialog inside the |
| 4 | app (via the device search button or Menu > Search), you can perform a search |
Scott Main | 50992e8 | 2009-08-29 13:08:18 -0700 | [diff] [blame] | 5 | across the dictionary. As you type, suggestions will appear, which you can select |
Scott Main | beca3af | 2010-03-25 17:37:25 -0700 | [diff] [blame] | 6 | to view the complete definition. You can also execute the search to view all word definitions |
Scott Main | 50992e8 | 2009-08-29 13:08:18 -0700 | [diff] [blame] | 7 | that match the entered text.</p> |
| 8 | |
| 9 | <p>The application also grants content provider privileges to |
| 10 | Quick Search Box, Android's system-wide search tool. This means that the |
| 11 | dictionary definitions can be offered as search suggestions outside of the application, |
| 12 | when text is entered into Quick Search Box.</p> |
Scott Main | beca3af | 2010-03-25 17:37:25 -0700 | [diff] [blame] | 13 | |
| 14 | <p>The code in this application demonstrates how to:</p> |
| 15 | <ul> |
| 16 | <li>Implement a search interface using Android's search framework</li> |
| 17 | <li>Provide custom search suggestions and offer them in Quick Search Box</li> |
| 18 | <li>Create an FTS3 table in SQLite and perform full-text search</li> |
| 19 | <li>Create a content provider to perform all searches and queries to the dictionary</li> |
| 20 | <li>Use <a |
| 21 | href="../../../reference/android/widget/SimpleCursorAdapter.html">SimpleCursorAdapter</a> to bind |
| 22 | data from a Cursor to a ListView.</li> |
| 23 | </ul> |
| 24 | |
Scott Main | 50992e8 | 2009-08-29 13:08:18 -0700 | [diff] [blame] | 25 | <p>See also:</p> |
| 26 | <ul> |
Scott Main | beca3af | 2010-03-25 17:37:25 -0700 | [diff] [blame] | 27 | <li><a href="../../../guide/topics/search/index.html">Search Developer Guide</a></li> |
Scott Main | 50992e8 | 2009-08-29 13:08:18 -0700 | [diff] [blame] | 28 | </ul> |
| 29 | |
Scott Main | beca3af | 2010-03-25 17:37:25 -0700 | [diff] [blame] | 30 | |
Scott Main | 50992e8 | 2009-08-29 13:08:18 -0700 | [diff] [blame] | 31 | <img src="../images/SearchableDictionary1.png" /> |
| 32 | <img src="../images/SearchableDictionary2.png" /> |