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 4app (via the device search button or Menu > Search), you can perform a search 5across the dictionary. As you type, suggestions will appear, which you can select 6to view the complete definition. You can also execute the search to view all word definitions 7that match the entered text. The application also allows Quick Search Box (Android's system-wide 8search) 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-providers.html">content 16provider</a> to perform all search and suggestion queries</li> 17 <li>Use <code><a 18href="../../../reference/android/widget/SimpleCursorAdapter.html">SimpleCursorAdapter</a></code> to 19bind data from a Cursor to a ListView.</li> 20</ul> 21 22<p><b>Revisions:</b></p> 23<ul> 24 <li>Updated for Android 3.0 to use the <a href="../../../guide/topics/ui/actionbar.html">Action 25Bar</a> and the <code><a 26href="../../../reference/android/widget/SearchView.html">SearchView</a></code> widget as an action item. 27(Available in the <em>Samples for SDK API 11</em>.)</li> 28</ul> 29 30<p>See also:</p> 31<ul> 32 <li><a href="../../../guide/topics/search/index.html">Search Developer Guide</a></li> 33</ul> 34 35<p class="note"><strong>Note:</strong> For the original version of Searchable Dictionary, which 36reads words from a file instead of a database and uses a custom <code><a 37href="../../../reference/android/widget/BaseAdapter.html">BaseAdapter</a></code>, see the SDK 38samples included with the platforms for API Level 4-6.</p> 39 40 41<img src="../images/SearchableDictionary1.png" /> 42<img src="../images/SearchableDictionary2.png" /> 43