title: Performing 'like' queries in Android Content Provider
body: <p>I'm implementing a Content Provider on Android. I'd like my query to look for more than just exact matches--is there a way to specify a 'like' query in the content provider query method?</p>
  
  <p>Current code. Note that <code>mSearchString</code> is a string the user provides--I'm currently using it to query the <code>UserDictionary</code>, and the only way it returns anything is if <code>mSearchString</code> exactly matches a word in the <code>UserDictionary</code>. I'd like to be able to match partial queries (for instance, if apple, aunt and practical are in the dictionary, I'd like to search for "a" and return them all).</p>
  
  <pre><code>        mSelectionClause = UserDictionary.Words.WORD + " = ?";
  
          // Moves the user's input string to the selection arguments.
          // Remember to add code here to check for invalid or malicious input.
          mSelectionArgs[0] = mSearchString;
  
      // Does a query against the table and returns a Cursor object
              Cursor mCursor = getContentResolver().query(
                      UserDictionary.Words.CONTENT_URI,  // The content URI of the words table
                      mProjection,                       // The columns to return for each row
                      mSelectionClause,                   // Either null, or the word the user entered
                      mSelectionArgs,                    // Either empty, or the string the user entered
                      mSortOrder);    
  </code></pre>