blob: 6f9d997622613ce3aecc3c189f9d74fbbb78dd23 [file] [log] [blame]
Scott Main50992e82009-08-29 13:08:18 -07001<p>A sample application that demonstrates Android's search framework.</p>
2
Scott Mainbeca3af2010-03-25 17:37:25 -07003<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
Scott Main50992e82009-08-29 13:08:18 -07005across the dictionary. As you type, suggestions will appear, which you can select
Scott Mainbeca3af2010-03-25 17:37:25 -07006to view the complete definition. You can also execute the search to view all word definitions
Scott Main50992e82009-08-29 13:08:18 -07007that match the entered text.</p>
8
9<p>The application also grants content provider privileges to
10Quick Search Box, Android's system-wide search tool. This means that the
11dictionary definitions can be offered as search suggestions outside of the application,
12when text is entered into Quick Search Box.</p>
Scott Mainbeca3af2010-03-25 17:37:25 -070013
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
21href="../../../reference/android/widget/SimpleCursorAdapter.html">SimpleCursorAdapter</a> to bind
22data from a Cursor to a ListView.</li>
23</ul>
24
Scott Main50992e82009-08-29 13:08:18 -070025<p>See also:</p>
26<ul>
Scott Mainbeca3af2010-03-25 17:37:25 -070027 <li><a href="../../../guide/topics/search/index.html">Search Developer Guide</a></li>
Scott Main50992e82009-08-29 13:08:18 -070028</ul>
29
Scott Mainbeca3af2010-03-25 17:37:25 -070030
Scott Main50992e82009-08-29 13:08:18 -070031<img src="../images/SearchableDictionary1.png" />
32<img src="../images/SearchableDictionary2.png" />