new version of the Searchable Dictionary that saves all the words
in an SQLite Database and FTS3 table, then performs all look ups using the content provider, plus various style modifications. Change-Id: If73c96f48aeae7372333a558b2d494bcb256edfe
This commit is contained in:
@@ -1,21 +1,32 @@
|
||||
<p>A sample application that demonstrates Android's search framework.</p>
|
||||
|
||||
<p>This application includes a dictionary of words. By invoking a search inside the app
|
||||
(via the device search button or Menu > Search), a local search will be performed
|
||||
<p>This application includes a dictionary of words. By invoking the Android search dialog inside the
|
||||
app (via the device search button or Menu > Search), you can perform a search
|
||||
across the dictionary. As you type, suggestions will appear, which you can select
|
||||
to view the full definition. You can also execute the search to view all word definitions
|
||||
to view the complete definition. You can also execute the search to view all word definitions
|
||||
that match the entered text.</p>
|
||||
|
||||
<p>The application also grants content provider privileges to
|
||||
Quick Search Box, Android's system-wide search tool. This means that the
|
||||
dictionary definitions can be offered as search suggestions outside of the application,
|
||||
when text is entered into Quick Search Box.</p>
|
||||
|
||||
|
||||
<p>The code in this application demonstrates how to:</p>
|
||||
<ul>
|
||||
<li>Implement a search interface using Android's search framework</li>
|
||||
<li>Provide custom search suggestions and offer them in Quick Search Box</li>
|
||||
<li>Create an FTS3 table in SQLite and perform full-text search</li>
|
||||
<li>Create a content provider to perform all searches and queries to the dictionary</li>
|
||||
<li>Use <a
|
||||
href="../../../reference/android/widget/SimpleCursorAdapter.html">SimpleCursorAdapter</a> to bind
|
||||
data from a Cursor to a ListView.</li>
|
||||
</ul>
|
||||
|
||||
<p>See also:</p>
|
||||
<ul>
|
||||
<li><a href="../../../reference/android/app/SearchManager.html">SearchManager</a></li>
|
||||
<li><a href="../../../reference/android/content/ContentProvider.html">ContentProvider</a></li>
|
||||
<li><a href="../../../guide/topics/search/index.html">Search Developer Guide</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
<img src="../images/SearchableDictionary1.png" />
|
||||
<img src="../images/SearchableDictionary2.png" />
|
||||
Reference in New Issue
Block a user