title: Android SearchRecentSuggestions - suggestions do not get displayed when typing in SearchView
body: <p>I have a working search widget and want to add search history suggestions. I followed the Android tutorial (<a href="http://developer.android.com/guide/topics/search/adding-recent-query-suggestions.html">http://developer.android.com/guide/topics/search/adding-recent-query-suggestions.html</a>), and while the search still works, no suggestions are being displayed. Here is my code:</p>
  
  <ol>
  <li><p>Content provider</p>
  
  <pre><code>package com.mypackage;
  
  import android.content.SearchRecentSuggestionsProvider;
  
  public class SearchHistoryProvider extends SearchRecentSuggestionsProvider {
      public final static String AUTHORITY = SearchHistoryProvider.class.getName();
      public final static int MODE = DATABASE_MODE_QUERIES;
  
      public SearchHistoryProvider() {
          setupSuggestions(AUTHORITY, MODE);
      }
  }
  </code></pre></li>
  <li><p>Declaring provider in Manifest</p>
  
  <pre><code>&lt;provider 
      android:name=".SearchHistoryProvider"
      android:authorities="com.mypackage.SearchHistoryProvider"&gt;
  &lt;/provider&gt;
  </code></pre></li>
  <li><p>Searchable configuration</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;searchable xmlns:android="http://schemas.android.com/apk/res/android"
      android:label="@string/app_name"
      android:hint="@string/search_hint"
      android:voiceSearchMode="showVoiceSearchButton|launchRecognizer"
      android:searchSuggestAuthority="com.mypackage.SearchHistoryProvider"
      android:searchSuggestSelection=" ?"&gt;
  &lt;/searchable&gt;
  </code></pre></li>
  <li><p>Saving the queries to the content provider (in my searchable Activity)</p>
  
  <pre><code>private void handleIntent(Intent intent) {
  if (Intent.ACTION_SEARCH.equals(intent.getAction())) {
  
      String query = intent.getStringExtra(SearchManager.QUERY);
      SearchRecentSuggestions suggestions = new SearchRecentSuggestions(this,
                          SearchHistoryProvider.AUTHORITY, SearchHistoryProvider.MODE);
      suggestions.saveRecentQuery(query, null);
  
      // Collapse the search view as a search is performed
      MenuItem searchItem = mMenu.findItem(R.id.search);
      SearchView searchView = (SearchView) mMenu.findItem(R.id.search).getActionView();
      searchItem.collapseActionView();
      searchView.setQuery("", false);
  
      // send the query to the global search activity for loading the data
      Intent globalSearchIntent = new Intent(this, GlobalSearchFragmentActivity.class);
      GroceryOTGUtils.copyIntentData(intent, globalSearchIntent);
      globalSearchIntent.putExtra(GlobalSearchFragmentActivity.GLOBAL_SEARCH, true);
      startActivity(globalSearchIntent);
  }
  }
  </code></pre></li>
  </ol>
  
  <p>Everything works fine, except the suggestions do not actually show up (the search looks the same as before I added them). Any help would be greatly appreciated!</p>