title: Search bar widget not starting searchable activity
body: <p>I'm trying to implement a search on my android application using a search bar widget in the action bar.</p>
  
  <p>I am following </p>
  
  <p><a href="http://developer.android.com/guide/topics/search/search-dialog.html" rel="noreferrer">http://developer.android.com/guide/topics/search/search-dialog.html</a> 
  <a href="http://developer.android.com/guide/topics/ui/actionbar.html#ActionView" rel="noreferrer">http://developer.android.com/guide/topics/ui/actionbar.html#ActionView</a></p>
  
  <p>tutorials to get this done.</p>
  
  <p>I have two activities involved in searching. SearchBar activity has the action bar and AcceptSearch is my searchable activity. Even though I declared which activity was the searchable activity, the query is not being sent over to AcceptSearch and the activity is not launched.</p>
  
  <p>I configured the search bar such that a search bar hint appears when the widget is empty, but the hint never appears either.  Here is my code.</p>
  
  <p><strong>SearchBar</strong></p>
  
  <pre><code>public class SearchBar extends Activity 
  {
  
  @Override
  protected void onCreate(Bundle savedInstanceState) 
  {
      // TODO Auto-generated method stub
      super.onCreate(savedInstanceState);
  
      setContentView(R.layout.search_bar);
  }
  
  @Override
  public boolean onCreateOptionsMenu(Menu menu)
  {
      //Inflate the options menu from XML
      MenuInflater inflater = getMenuInflater();
      inflater.inflate(R.menu.options_menu, menu);
  
      // Get the SearchView and set the searchable configuration
      SearchManager searchManager = (SearchManager)getSystemService(Context.SEARCH_SERVICE);
      SearchView searchView = (SearchView) menu.findItem(R.id.menu_search).getActionView();
      searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));
      searchView.setIconifiedByDefault(false);        
      return true;        
  }
  </code></pre>
  
  <p><strong>AcceptSearch</strong></p>
  
  <pre><code>public class AcceptSearch extends ListActivity
  {
  @Override
  protected void onCreate(Bundle savedInstanceState) 
  {       
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_splash_screen);
  
      //Get the intent, verify the action and get the query
      Intent intent = getIntent();
      if(Intent.ACTION_SEARCH.equals(intent.getAction()))
      {
          String query = intent.getStringExtra(SearchManager.QUERY);  
  
          //Start the search
          doMySearch();
      }
  }
  </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="@string/app_label"
      android:hint="@string/search_hint"&gt;    
  &lt;/searchable&gt;
  </code></pre>
  
  <p><strong>options_menu</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;menu xmlns:android="http://schemas.android.com/apk/res/android" &gt;    
  &lt;item
      android:title="Help"
      android:id="@+id/menu_help"
      android:showAsAction="always"
  /&gt;
  &lt;item
      android:title="Categories"
      android:id="@+id/menu_cats"
      android:showAsAction="always"
  /&gt;
  &lt;item 
      android:id="@+id/menu_search"
      android:title="Search with Searchlet"
      android:icon="@drawable/ic_action_search"
      android:showAsAction="ifRoom|collapseActionView"
      android:actionViewClass="android.widget.SearchView"/&gt;
  &lt;/menu&gt;
  </code></pre>
  
  <p><strong>Manifest</strong></p>
  
  <pre><code>    &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.example.searchlet"
      android:versionCode="1"
      android:versionName="1.0" &gt;
  
  &lt;uses-sdk
      android:minSdkVersion="11"
      android:targetSdkVersion="15" /&gt;
  
  &lt;application
      android:icon="@drawable/ic_launcher"
      android:label="@string/app_name"
      android:theme="@style/AppTheme" &gt;
  
      &lt;activity
          android:name=".SplashScreenActivity"
          android:label="@string/title_activity_splash_screen"
          android:screenOrientation="portrait" &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:name=".AcceptSearch"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.SEARCH" /&gt;
          &lt;/intent-filter&gt;
          &lt;meta-data android:name="android.app.searchable"
              android:resource="@xml/searchable"/&gt;
      &lt;/activity&gt;
  
      &lt;activity android:name=".SearchBar"
                android:label="@string/app_name"&gt;                  
          &lt;intent-filter&gt;
              &lt;action android:name="com.example.searchlet.CLEARSCREEN" /&gt;
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
  
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  
  &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>I beleive thats all the needed information to recreate the situation.</p>
  
  <p>Thank you all in advance. I apprecicate.</p>