title: Android: getSearchableInfo(getComponentName()) returning null?
body: <p>I'm trying to get suggestions for SearchView. I've implemented a custom content provider for it. I've also referred to this <a href="http://developer.android.com/intl/es/training/search/setup.html" rel="noreferrer">link</a> to implement suggestions for the SearchView. The problem I'm facing is, I get null value on <code>searchManager.getSearchableInfo(getComponentName())</code></p>
  
  <p>Here are the snippets:</p>
  
  <p><strong>AndroidManifest.xml</strong></p>
  
  <pre><code>    &lt;application
      android:icon="@drawable/ic_launcher"
      android:label="@string/app_name"
      android:theme="@style/AppTheme" &gt;
  
      &lt;provider android:name=".SearchProvider"
          android:enabled="true"
          android:authorities="com.example.currentlocationmapdemo"
          android:grantUriPermissions="true"
          android:exported="true"&gt;
          &lt;grant-uri-permission android:pathPattern="*" /&gt;
      &lt;/provider&gt;
      &lt;uses-library android:name="com.google.android.maps" /&gt;
  
      &lt;activity
          android:name=".MainActivity"
          android:label="@string/title_activity_main" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
  
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
        &lt;meta-data android:name="android.app.searchable"
            android:resource="@xml/searchable"/&gt; 
      &lt;/activity&gt;
  </code></pre>
  
  <p><strong>searchable.xml</strong></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="label"
  android:hint="hint"
  android:searchSuggestAuthority="com.example.currentlocationmapdemo"
  android:searchSuggestSelection=" ? "&gt;
  </code></pre>
  
  <p></p>
  
  <p><strong>MainActivity</strong></p>
  
  <pre><code>    @Override
  public boolean onCreateOptionsMenu(Menu menu) {
      MenuInflater inflater = getMenuInflater();
      inflater.inflate(R.menu.searchview_in_menu, menu);
      MenuItem searchItem = menu.findItem(R.id.action_search);
      mSearchView = (SearchView) searchItem.getActionView();
      SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);
  SearchableInfo info = searchManager.getSearchableInfo(getComponentName());  // null returned
  mSearchView.setSearchableInfo(info);
  
   return true;
  }
  </code></pre>