1 <p>A sample application that demonstrates Android's search framework.</p> 2 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 5 across the dictionary. As you type, suggestions will appear, which you can select 6 to view the complete definition. You can also execute the search to view all word definitions 7 that match the entered text. The application also allows Quick Search Box (Android's system-wide 8 search) to provide dictionary suggestions.</p> 9 10 <p>The code in this application demonstrates how to:</p> 11 <ul> 12 <li>Implement a search interface using Android's search framework</li> 13 <li>Provide custom search suggestions and offer them in Quick Search Box</li> 14 <li>Create an SQLite database and an FTS3 table for full-text searches</li> 15 <li>Create a <a href="../../../guide/topics/providers/content-provider.html">content 16 provider</a> to perform all search and suggestion queries</li> 17 <li>Use <code><a 18 href="../../../reference/android/widget/SimpleCursorAdapter.html">SimpleCursorAdapter</a></code> to 19 bind data from a Cursor to a ListView.</li> 20 </ul> 21 22 <p>See also:</p> 23 <ul> 24 <li><a href="../../../guide/topics/search/index.html">Search Developer Guide</a></li> 25 </ul> 26 27 <p class="note"><strong>Note:</strong> For the original version of Searchable Dictionary, which 28 reads words from a file instead of a database and uses a custom <code><a 29 href="../../../reference/android/widget/BaseAdapter.html">BaseAdapter</a></code>, see the SDK 30 samples included with the platforms for API Level 4-6.</p> 31 32 33 <img src="../images/SearchableDictionary1.png" /> 34 <img src="../images/SearchableDictionary2.png" /> 35