title: Android: How to hide the sliding menu when back button clicked
body: <p>I am using :</p>
  
  <p><a href="https://github.com/iPaulPro/SlidingMenu" rel="nofollow">https://github.com/iPaulPro/SlidingMenu</a></p>
  
  <p>library to implement Facebook like sliding menu, along with ActionBarSherlock library.</p>
  
  <p>The BehindContentView in my case is a ListFragment.</p>
  
  <p><strong>1. Click on an Image to get the behindView (calling toggle();).</strong></p>
  
  <p><strong>2. onListItemClicked takes to an Activity_2 displaying the text of the item clicked.</strong></p>
  
  <p><strong>3. in this Activity_2 when i click device back button i get the main Activity_1 but the behindView is open. Usually in Facebook or Google+ the behavior is that, the behindView is hidden when you come back to Activity_1 from any other Activity.</strong></p>
  
  <p><strong>4. Moreover on Activity_2 even after having these lines, the home doesn't seem to work(nothing happens when i click the home button).</strong></p>
  
  <pre><code>    ActionBar bar = this.getSupportActionBar();
      bar.setDisplayHomeAsUpEnabled(true);
      bar.setDisplayOptions(0, ActionBar.DISPLAY_SHOW_TITLE);
      bar.setHomeButtonEnabled(true);
  </code></pre>
  
  <p>How to solve step 3 and 4??</p>
  
  <p>Thank You</p>