title: Back Button (activity) Return To Fragment
body: <p>I have a class that <code>extends FragmentActivity</code></p>
  
  <p>That accesses fragments with the following:</p>
  
  <pre><code>@Override
  public Fragment getItem(int arg0) {
      // TODO Auto-generated method stub
  
      Fragment fragment=null;
      if (arg0 == 0) {
          fragment = new Fragment_01_Rooms();
      }
      if (arg0 == 1) {
          fragment = new Fragment_02_Contacts();
      }
  
      return fragment;
  }
  </code></pre>
  
  <p>Now the Fragment called is <code>public class Fragment_02_Contacts extends Fragment</code></p>
  
  <p>Which call another class via intent with the following:</p>
  
  <pre><code>Intent intent = new Intent(getActivity(), ActivityChatPrivate.class);
  intent.putExtra("valueCONTACT", contactSelected);
  startActivity(intent);
  </code></pre>
  
  <p>Now this class called has <code>public class ActivityChatPrivate extends FragmentActivity</code></p>
  
  <p>On this class I am trying to return back to <code>Fragment_02_Contacts</code> via the back button. HOW DO I DO THAT WITH </p>
  
  <pre><code>public void onBackPressed(){
      //some_code_here to return back to Fragment_02_Contacts 
  }
  </code></pre>