title: how to provide proper back navigation with fragment on clicking the home button
body: <p>I would like to provide back navigation while clicking on the Home button of Actionbar.
   <strong>In the Host Fragment</strong></p>
  
  <pre><code>((MainActivity)this.getActivity()).fragment_Actualités=new Fragment_Actualités();
           fragmentTransaction.replace(R.id.content_frame,((MainActivity)this.getActivity()).fragment_Actualités);
           fragmentTransaction.addToBackStack(null);
           fragmentTransaction.commit();
          ((MainActivity)this.getActivity()).fragmentManager.executePendingTransactions();
          ((MainActivity)this.getActivity()).supportInvalidateOptionsMenu();
  </code></pre>
  
  <p><strong>In the Host Activity</strong></p>
  
  <pre><code>  public boolean onOptionsItemSelected(MenuItem item) {
      // The action bar home/up action should open or close the drawer.
      // ActionBarDrawerToggle will take care of this.
      if (mDrawerToggle.onOptionsItemSelected(item)) {
          return true;
      }
      // Handle action buttons
      int id=0;
      if(id==item.getItemId()){
           if(id== R.id.home)
          {
              this.onBackPressed();
              return true;}
  
          }
  </code></pre>
  
  <p><em>The super.OnBackPressed works fine when I click on the back button it goes back as expected</em>
  How can I make it worked ?</p>