1*90c8c64dSAndroid Build Coastguard Worker<p>A sample application that demonstrates Android's search framework.</p> 2*90c8c64dSAndroid Build Coastguard Worker 3*90c8c64dSAndroid Build Coastguard Worker<p>This application includes a dictionary of words. By invoking the Android search dialog inside the 4*90c8c64dSAndroid Build Coastguard Workerapp (via the device search button or Menu > Search), you can perform a search 5*90c8c64dSAndroid Build Coastguard Workeracross the dictionary. As you type, suggestions will appear, which you can select 6*90c8c64dSAndroid Build Coastguard Workerto view the complete definition. You can also execute the search to view all word definitions 7*90c8c64dSAndroid Build Coastguard Workerthat match the entered text. The application also allows Quick Search Box (Android's system-wide 8*90c8c64dSAndroid Build Coastguard Workersearch) to provide dictionary suggestions.</p> 9*90c8c64dSAndroid Build Coastguard Worker 10*90c8c64dSAndroid Build Coastguard Worker<p>The code in this application demonstrates how to:</p> 11*90c8c64dSAndroid Build Coastguard Worker<ul> 12*90c8c64dSAndroid Build Coastguard Worker <li>Implement a search interface using Android's search framework</li> 13*90c8c64dSAndroid Build Coastguard Worker <li>Provide custom search suggestions and offer them in Quick Search Box</li> 14*90c8c64dSAndroid Build Coastguard Worker <li>Create an SQLite database and an FTS3 table for full-text searches</li> 15*90c8c64dSAndroid Build Coastguard Worker <li>Create a <a href="../../../guide/topics/providers/content-providers.html">content 16*90c8c64dSAndroid Build Coastguard Workerprovider</a> to perform all search and suggestion queries</li> 17*90c8c64dSAndroid Build Coastguard Worker <li>Use <code><a 18*90c8c64dSAndroid Build Coastguard Workerhref="../../../reference/android/widget/SimpleCursorAdapter.html">SimpleCursorAdapter</a></code> to 19*90c8c64dSAndroid Build Coastguard Workerbind data from a Cursor to a ListView.</li> 20*90c8c64dSAndroid Build Coastguard Worker</ul> 21*90c8c64dSAndroid Build Coastguard Worker 22*90c8c64dSAndroid Build Coastguard Worker<p><b>Revisions:</b></p> 23*90c8c64dSAndroid Build Coastguard Worker<ul> 24*90c8c64dSAndroid Build Coastguard Worker <li>Updated for Android 3.0 to use the <a href="../../../guide/topics/ui/actionbar.html">Action 25*90c8c64dSAndroid Build Coastguard WorkerBar</a> and the <code><a 26*90c8c64dSAndroid Build Coastguard Workerhref="../../../reference/android/widget/SearchView.html">SearchView</a></code> widget as an action item. 27*90c8c64dSAndroid Build Coastguard Worker(Available in the <em>Samples for SDK API 11</em>.)</li> 28*90c8c64dSAndroid Build Coastguard Worker</ul> 29*90c8c64dSAndroid Build Coastguard Worker 30*90c8c64dSAndroid Build Coastguard Worker<p>See also:</p> 31*90c8c64dSAndroid Build Coastguard Worker<ul> 32*90c8c64dSAndroid Build Coastguard Worker <li><a href="../../../guide/topics/search/index.html">Search Developer Guide</a></li> 33*90c8c64dSAndroid Build Coastguard Worker</ul> 34*90c8c64dSAndroid Build Coastguard Worker 35*90c8c64dSAndroid Build Coastguard Worker<p class="note"><strong>Note:</strong> For the original version of Searchable Dictionary, which 36*90c8c64dSAndroid Build Coastguard Workerreads words from a file instead of a database and uses a custom <code><a 37*90c8c64dSAndroid Build Coastguard Workerhref="../../../reference/android/widget/BaseAdapter.html">BaseAdapter</a></code>, see the SDK 38*90c8c64dSAndroid Build Coastguard Workersamples included with the platforms for API Level 4-6.</p> 39*90c8c64dSAndroid Build Coastguard Worker 40*90c8c64dSAndroid Build Coastguard Worker 41*90c8c64dSAndroid Build Coastguard Worker<img src="../images/SearchableDictionary1.png" /> 42*90c8c64dSAndroid Build Coastguard Worker<img src="../images/SearchableDictionary2.png" /> 43