4
4
app (via the device search button or Menu > Search), you can perform a search
5
5
across the dictionary. As you type, suggestions will appear, which you can select
6
6
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 >
13
9
14
10
< p > The code in this application demonstrates how to:</ p >
15
11
< ul >
16
12
< li > Implement a search interface using Android's search framework</ li >
17
13
< 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 >
23
20
</ ul >
24
21
25
22
< p > See also:</ p >
26
23
< ul >
27
24
< li > < a href ="../../../guide/topics/search/index.html "> Search Developer Guide</ a > </ li >
28
25
</ ul >
29
26
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
+
30
32
31
33
< img src ="../images/SearchableDictionary1.png " />
32
- < img src ="../images/SearchableDictionary2.png " />
34
+ < img src ="../images/SearchableDictionary2.png " />
0 commit comments