title: Intent is not triggered in android searchview
body: <p>Here is my code for <code>searchview</code> in android.Search option is visible on the <code>toolbar</code> but when a text and entered and searched it does not trigger <code>SearchActivity</code>. </p>
  
  <p><strong>xml/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="@string/label"
      android:hint="@string/search" &gt;
  &lt;/searchable&gt;
  </code></pre>
  
  <p><strong>menu/menu.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;menu xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"&gt;
  
  &lt;item android:id="@+id/search"
      android:title="@string/search_title"
      android:icon="@drawable/ic_search"
      app:showAsAction="collapseActionView|ifRoom"
      app:actionViewClass="android.support.v7.widget.SearchView" /&gt;
  &lt;/menu&gt;
  </code></pre>
  
  <p><strong>AndroidManifest.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.welcomecure.searchview"&gt;
  
      &lt;application
          android:allowBackup="true"
          android:icon="@mipmap/ic_launcher"
          android:label="@string/app_name"
          android:supportsRtl="true"
          android:theme="@style/AppTheme"&gt;
  
          &lt;activity android:name=".MainActivity"&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.default_searchable"
                android:value=".SearchResultsActivity" /&gt;
          &lt;/activity&gt;
  
          &lt;activity
            android:name=".SearchActivity"
            android:label="@string/app_name"&gt;
  
            &lt;!-- to identify this activity as "searchable" --&gt;
            &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.SEARCH" /&gt;
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
            &lt;/intent-filter&gt;
  
            &lt;meta-data
              android:name="android.app.searchable"
              android:resource="@xml/searchable" /&gt;
         &lt;/activity&gt;
    &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p><strong>MainActivity.java</strong></p>
  
  <pre><code>public class MainActivity extends AppCompatActivity {
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  }
  
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
      MenuInflater inflater = getMenuInflater();
      // Inflate menu to add items to action bar if it is present.
      inflater.inflate(R.menu.menu, menu);
      // Associate searchable configuration with the SearchView
      SearchManager searchManager =
              (SearchManager) getSystemService(Context.SEARCH_SERVICE);
      SearchView searchView =
              (SearchView) menu.findItem(R.id.search).getActionView();
      searchView.setSearchableInfo(
              searchManager.getSearchableInfo(getComponentName()));
  
      return true;
   }
  }
  </code></pre>
  
  <p><strong>SearchActivity.java</strong></p>
  
  <pre><code>public class SearchActivity extends AppCompatActivity {
  
  @Override
  protected void onCreate(@Nullable Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      handleIntent(getIntent());
  }
  
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
      MenuInflater inflater = getMenuInflater();
      inflater.inflate(R.menu.menu, menu);
      SearchManager searchManager =
              (SearchManager) getSystemService(Context.SEARCH_SERVICE);
      SearchView searchView =
              (SearchView) menu.findItem(R.id.search).getActionView();
      searchView.setSearchableInfo(
              searchManager.getSearchableInfo(getComponentName()));
  
      return true;
  }
  
  @Override
  protected void onNewIntent(Intent intent) {
      handleIntent(intent);
  }
  
  private void handleIntent(Intent intent) {
  
      if (Intent.ACTION_SEARCH.equals(intent.getAction())) {
          String query = intent.getStringExtra(SearchManager.QUERY);
          //use the query to search
      }
   }
  }
  </code></pre>