title: Search Widget Pop UP
body: <p>I have integrated the search widget into my action bar, when I submit the search a screen opens up (attached) which I don't want as I am calling my own customised search.  When I hit the back button, this screen is removed and my search results are displayed.</p>
  
  <p>Here is the code I'm using</p>
  
  <pre><code>public class Main_Activity extends ActionBarActivity implements SearchView.OnQueryTextListener{
  
  protected void onCreate......{
  
  }
  
  @Override
  public boolean onCreateOptionsMenu(Menu menu){
  
      MenuInflater inflater = getMenuInflater();
      inflater.inflate(R.menu.action_menu, menu);
  
      MenuItem searchItem = menu.findItem(R.id.action_search);
      mSearchView = (SearchView) searchItem.getActionView();
  
      setupSearchView(searchItem);
  
      return true;
  }
  
  
  private void setupSearchView(MenuItem searchItem) {
  
      SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);
      if (searchManager != null) {
          List&lt;SearchableInfo&gt; searchables = searchManager.getSearchablesInGlobalSearch();
  
          SearchableInfo info = searchManager.getSearchableInfo(getComponentName());
          for (SearchableInfo inf : searchables) {
              if (inf.getSuggestAuthority() != null
                      &amp;&amp; inf.getSuggestAuthority().startsWith("applications")) {
                  info = inf;
              }
          }
          mSearchView.setSearchableInfo(info);
      }
  
      mSearchView.setOnQueryTextListener(this);
  }
  
  
  @Override
      public boolean onQueryTextSubmit(String query) {
  
          handleTextSearchClickEvent(query);
  
          return false;
      }
  
      @Override
      public boolean onQueryTextChange(String newText) {
          return false;
      }
  </code></pre>
  
  <p>menu.xml</p>
  
  
  
  <pre><code>&lt;menu xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
    &gt;
      &lt;!-- Location Found --&gt;
      &lt;item android:id="@+id/action_location_found"
          android:icon="@drawable/icon_plus"
          android:title="@string/action_location_add"
  
          app:showAsAction="always"
         /&gt;
  
  &lt;!--divider--&gt;
      &lt;item android:id="@+id/divider"
          android:icon="@drawable/divider"
          android:title="@string/action_search"
          android:enabled="false"
          app:showAsAction="never"/&gt;
  
      &lt;!-- Search Item --&gt;
      &lt;item android:id="@+id/action_search"
          android:icon="@drawable/icon_search"
          android:title="@string/action_search"
  
          app:showAsAction = "always"
          app:actionViewClass = "android.widget.SearchView"
        /&gt;
  &lt;/menu&gt;
  </code></pre>
  
  <p>Please before people give out about the code not being compilable I know that, I'm just showing the necessities...</p>
  
  <p>I would just like to know, if anyone does know how to prevent this screen from displaying?!</p>
  
  <p>It would be greatly appreciated</p>
  
  <p><a href="http://i.stack.imgur.com/dusG6.png" rel="nofollow">screen shot of pop up screen</a></p>