title: Search activity not being launched when pressing enter
body: <p>Search activity not being launched when pressing enter.The search view is shown nicely on the action bar. But when i type the search query and press enter</p>
  
  <p>AndroidManifest.xml</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.punit.rateit"
  android:versionCode="1"
  android:versionName="1.0" &gt;
  
  &lt;uses-sdk
      android:minSdkVersion="11"
      android:targetSdkVersion="17" /&gt;
  &lt;uses-permission android:name="android.permission.INTERNET"/&gt;
  
  &lt;application
      android:allowBackup="true"
      android:icon="@drawable/ic_launcher"
      android:label="@string/app_name"
      android:theme="@style/AppTheme"
  
      &gt;
      &lt;activity
          android:name="com.punit.rateit.MainActivity"
          android:label="@string/app_name" &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;/activity&gt;
  
      &lt;activity android:theme="@style/Theme.AppCompat.Light"
                android:name=".SearchPageActivity"&gt;
            &lt;meta-data android:name="android.app.default_searchable" android:value=".SearchResultsActivity" /&gt; 
        &lt;intent-filter&gt;
           &lt;action android:name="android.intent.action.SearchPage" /&gt;
        &lt;/intent-filter&gt;
      &lt;/activity&gt;
  
     &lt;activity android:name="com.punit.rateit.SearchResultsActivity"   android:launchMode="singleTop" &gt;
    &lt;intent-filter&gt;
      &lt;action android:name="android.intent.action.SEARCH" /&gt;
       &lt;meta-data android:name="android.app.searchable"
                 android:resource="@xml/searchable"/&gt;
      &lt;/intent-filter&gt;
     &lt;/activity&gt;       
  
      &lt;/application&gt;
  
   &lt;/manifest&gt;
  </code></pre>
  
  <p>Here is the Menu.xml</p>
  
  <pre><code>&lt;menu xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:com.punit.rateit="http://schemas.android.com/apk/res-auto" &gt;
  &lt;!-- Search, should appear as action button --&gt;
  &lt;item android:id="@+id/search"
        android:icon="@drawable/ic_search"
        android:title="@string/action_search"
        com.punit.rateit:actionViewClass="android.widget.SearchView"
         com.punit.rateit:showAsAction="ifRoom"
  
         /&gt;
  
     &lt;/menu&gt;
  </code></pre>
  
  <p>The activity which shows action bar.</p>
  
  <pre><code>     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()));
        searchView.setIconifiedByDefault(false);
        searchView.setSubmitButtonEnabled (true); 
       return super.onCreateOptionsMenu(menu);
   }
  </code></pre>
  
  <p>The SearchResult activity which should be the activity called when search submit button is pressed</p>
  
  <pre><code>public class SearchResultsActivity extends Activity {
  
  
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      Log.d("search", "search triggered");
      setContentView(R.layout.searchpage);
  
      handleIntent(getIntent());
  }
  @Override
  protected void onNewIntent(Intent intent) {
      Log.d("search", "search triggered");
      setIntent(intent);
      handleIntent(intent);
  }
  private void handleIntent(Intent intent)
  {
       if (Intent.ACTION_SEARCH.equals(intent.getAction())) {
              String query = intent.getStringExtra(SearchManager.QUERY);
              Log.d("search", query);
  }
    }
  
   @Override
   public boolean onSearchRequested() {
  
       Log.d("search", "search triggered");
  
       return false;  // don't go ahead and show the search box
   }
  </code></pre>