title: Start new activity from SearchView
body: <p>I have 2 activities: the first has a action bar with a search view, the second should display the results of the search query.</p>
  
  <p>androidmanifest:</p>
  
  <pre><code>    &lt;activity
          android:name=".SearchActivity"
  
          ...
          android:launchMode="singleTop"&gt;           
  
          &lt;meta-data
              android:name="android.app.searchable"
              android:resource="@xml/searchable" /&gt;
          ...
  
      &lt;/activity&gt;
  
     &lt;activity
          android:name=".ResultsActivity"
          ...
  
           &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.SEARCH" /&gt;
          &lt;/intent-filter&gt;
  
      &lt;/activity&gt;
  </code></pre>
  
  <p>searchable.xml</p>
  
  <pre><code>&lt;searchable
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:label="@string/app_name"
  android:hint="@string/enter_a_word" /&gt;
  </code></pre>
  
  <p>SearchActivity</p>
  
  <pre><code>....
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
      // Inflate the menu; this adds items to the action bar if it is present.
      getMenuInflater().inflate(R.menu.menu_noun_list, 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>ResultsActivity:</p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      ...
  if (Intent.ACTION_SEARCH.equals(intent.getAction())) {
          String query = intent.getStringExtra(SearchManager.QUERY);
  
      }
  ...
  }
  </code></pre>
  
  <p>the problem is that after a query is entered into the searchview, nothing happens. No errors, nothing. How can i open the resultsactivity after the query is entered in the searchactivity?</p>