title: Android Actionbar Search widget implementation In ListFragment
body: <p>I currently have my application set up with a <code>ListFragment</code> on the left and a <code>DetailsFragment</code> on the right (similar to the layout on the tablet below).</p>
  
  <p><img src="https://developer.android.com/images/fundamentals/fragments.png" alt="layout"></p>
  
  <p>On the action bar I have a search widget which when a search term is submitted should update the contents of the list (in the ListFragment).
  I have been following the search guide on android dev (<a href="http://developer.android.com/guide/topics/search/search-dialog.html" rel="nofollow noreferrer">http://developer.android.com/guide/topics/search/search-dialog.html</a>) but I am having problems getting the search to update the list in the same activity.</p>
  
  <p>I have managed to get some form of implementation working by calling a new activity when the search term is submitted but this makes the back button behave oddly (i.e. you press back and you go to the previous activity with the search widget still displaying the search term).</p>
  
  <p>I have added the intent lines to the manifest as follows</p>
  
  <pre><code>&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;
  </code></pre>
  
  <p>Is it possible to get the search widget to update the list of the current activity? </p>