Merge "title the searchable dictionary app as "v2" because it includes significant changes and it's worth highlighting the revision. some revisions to the sample desciption. a companion change to the resources navigation link will follow (to name it v2)." into froyo
This commit is contained in:
@@ -97,7 +97,7 @@ development/samples/SkeletonApp samples/${PLATFORM_NAME}/SkeletonAp
|
|||||||
development/samples/Snake samples/${PLATFORM_NAME}/Snake
|
development/samples/Snake samples/${PLATFORM_NAME}/Snake
|
||||||
development/samples/SoftKeyboard samples/${PLATFORM_NAME}/SoftKeyboard
|
development/samples/SoftKeyboard samples/${PLATFORM_NAME}/SoftKeyboard
|
||||||
development/samples/JetBoy samples/${PLATFORM_NAME}/JetBoy
|
development/samples/JetBoy samples/${PLATFORM_NAME}/JetBoy
|
||||||
development/samples/SearchableDictionary samples/${PLATFORM_NAME}/SearchableDictionary
|
development/samples/SearchableDictionary samples/${PLATFORM_NAME}/SearchableDictionaryV2
|
||||||
development/samples/ContactManager samples/${PLATFORM_NAME}/ContactManager
|
development/samples/ContactManager samples/${PLATFORM_NAME}/ContactManager
|
||||||
development/samples/MultiResolution samples/${PLATFORM_NAME}/MultiResolution
|
development/samples/MultiResolution samples/${PLATFORM_NAME}/MultiResolution
|
||||||
development/samples/Wiktionary samples/${PLATFORM_NAME}/Wiktionary
|
development/samples/Wiktionary samples/${PLATFORM_NAME}/Wiktionary
|
||||||
|
|||||||
@@ -4,22 +4,19 @@
|
|||||||
app (via the device search button or Menu > Search), you can perform a search
|
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
|
across the dictionary. As you type, suggestions will appear, which you can select
|
||||||
to view the complete 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>
|
that match the entered text. The application also allows Quick Search Box (Android's system-wide
|
||||||
|
search) to provide dictionary suggestions.</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>
|
<p>The code in this application demonstrates how to:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Implement a search interface using Android's search framework</li>
|
<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>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 an SQLite database and an FTS3 table for full-text searches</li>
|
||||||
<li>Create a content provider to perform all searches and queries to the dictionary</li>
|
<li>Create a <a href="../../../guide/topics/providers/content-provider.html">content
|
||||||
<li>Use <a
|
provider</a> to perform all search and suggestion queries</li>
|
||||||
href="../../../reference/android/widget/SimpleCursorAdapter.html">SimpleCursorAdapter</a> to bind
|
<li>Use <code><a
|
||||||
data from a Cursor to a ListView.</li>
|
href="../../../reference/android/widget/SimpleCursorAdapter.html">SimpleCursorAdapter</a></code> to
|
||||||
|
bind data from a Cursor to a ListView.</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p>See also:</p>
|
<p>See also:</p>
|
||||||
@@ -27,6 +24,11 @@ data from a Cursor to a ListView.</li>
|
|||||||
<li><a href="../../../guide/topics/search/index.html">Search Developer Guide</a></li>
|
<li><a href="../../../guide/topics/search/index.html">Search Developer Guide</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
<p class="note"><strong>Note:</strong> For the original version of Searchable Dictionary, which
|
||||||
|
reads words from a file instead of a database and uses a custom <code><a
|
||||||
|
href="../../../reference/android/widget/BaseAdapter.html">BaseAdapter</a></code>, see the SDK
|
||||||
|
samples included with the platforms for API Level 4-6.</p>
|
||||||
|
|
||||||
|
|
||||||
<img src="../images/SearchableDictionary1.png" />
|
<img src="../images/SearchableDictionary1.png" />
|
||||||
<img src="../images/SearchableDictionary2.png" />
|
<img src="../images/SearchableDictionary2.png" />
|
||||||
|
|||||||
Reference in New Issue
Block a user