Skip to content

Commit 3adbb98

Browse files
scottamainAndroid (Google) Code Review
authored andcommitted
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
2 parents 0e4dd61 + 05bd673 commit 3adbb98

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

build/sdk.atree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ development/samples/SkeletonApp samples/${PLATFORM_NAME}/SkeletonAp
9797
development/samples/Snake samples/${PLATFORM_NAME}/Snake
9898
development/samples/SoftKeyboard samples/${PLATFORM_NAME}/SoftKeyboard
9999
development/samples/JetBoy samples/${PLATFORM_NAME}/JetBoy
100-
development/samples/SearchableDictionary samples/${PLATFORM_NAME}/SearchableDictionary
100+
development/samples/SearchableDictionary samples/${PLATFORM_NAME}/SearchableDictionaryV2
101101
development/samples/ContactManager samples/${PLATFORM_NAME}/ContactManager
102102
development/samples/MultiResolution samples/${PLATFORM_NAME}/MultiResolution
103103
development/samples/Wiktionary samples/${PLATFORM_NAME}/Wiktionary

samples/SearchableDictionary/_index.html

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,31 @@
44
app (via the device search button or Menu > Search), you can perform a search
55
across the dictionary. As you type, suggestions will appear, which you can select
66
to view the complete definition. You can also execute the search to view all word definitions
7-
that match the entered text.</p>
8-
9-
<p>The application also grants content provider privileges to
10-
Quick Search Box, Android's system-wide search tool. This means that the
11-
dictionary definitions can be offered as search suggestions outside of the application,
12-
when text is entered into Quick Search Box.</p>
7+
that match the entered text. The application also allows Quick Search Box (Android's system-wide
8+
search) to provide dictionary suggestions.</p>
139

1410
<p>The code in this application demonstrates how to:</p>
1511
<ul>
1612
<li>Implement a search interface using Android's search framework</li>
1713
<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
21-
href="../../../reference/android/widget/SimpleCursorAdapter.html">SimpleCursorAdapter</a> to bind
22-
data from a Cursor to a ListView.</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-provider.html">content
16+
provider</a> to perform all search and suggestion queries</li>
17+
<li>Use <code><a
18+
href="../../../reference/android/widget/SimpleCursorAdapter.html">SimpleCursorAdapter</a></code> to
19+
bind data from a Cursor to a ListView.</li>
2320
</ul>
2421

2522
<p>See also:</p>
2623
<ul>
2724
<li><a href="../../../guide/topics/search/index.html">Search Developer Guide</a></li>
2825
</ul>
2926

27+
<p class="note"><strong>Note:</strong> For the original version of Searchable Dictionary, which
28+
reads words from a file instead of a database and uses a custom <code><a
29+
href="../../../reference/android/widget/BaseAdapter.html">BaseAdapter</a></code>, see the SDK
30+
samples included with the platforms for API Level 4-6.</p>
31+
3032

3133
<img src="../images/SearchableDictionary1.png" />
32-
<img src="../images/SearchableDictionary2.png" />
34+
<img src="../images/SearchableDictionary2.png" />

0 commit comments

Comments
 (0)