diff --git a/docs/html/guide/topics/providers/content-provider-basics.jd b/docs/html/guide/topics/providers/content-provider-basics.jd index b1d6827eb1c27..79990336fb1fb 100644 --- a/docs/html/guide/topics/providers/content-provider-basics.jd +++ b/docs/html/guide/topics/providers/content-provider-basics.jd @@ -455,7 +455,7 @@ String[] mSelectionArgs = {""};

In the next snippet, if the user doesn't enter a word, the selection clause is set to null, and the query returns all the words in the provider. If the user enters - a word, the selection clause is set to UserDictionary.Words.Word + " = ?" and + a word, the selection clause is set to UserDictionary.Words.WORD + " = ?" and the first element of selection arguments array is set to the word the user enters.

@@ -477,7 +477,7 @@ if (TextUtils.isEmpty(mSearchString)) {
 
 } else {
     // Constructs a selection clause that matches the word that the user entered.
-    mSelectionClause = " = ?";
+    mSelectionClause = UserDictionary.Words.WORD + " = ?";
 
     // Moves the user's input string to the selection arguments.
     mSelectionArgs[0] = mSearchString;