title: Start activity inside a fragment
body: <p>I got how create a tabhost using Fragment, like the photo below</p>
  
  <p><img src="https://i.stack.imgur.com/4OrST.jpg" alt=""></p>
  
  <p>"Fragment_container" is changed when clicking the tabs below the screen, and will be linking to fragment 1 to 4 respectively.</p>
  
  <p>That's all I have achieved currently, and now what I want to do is</p>
  
  <p><img src="https://i.stack.imgur.com/p2QGK.jpg" alt=""></p>
  
  <p>My purpose is, I don't know am I using the terms correctly, every fragment is like a single activity, I can start activity inside that fragment, just like above photo, with transition animation and without disappearing the tabhost. (Actually I'm using iOS, not often using Android, is it possible in Android?)</p>
  
  <p>I've tried : </p>
  
  <pre><code>Intent intent = new Intent(getActivity(), Fragment5.class);
  startActivity(intent);
  </code></pre>
  
  <p>It starts activity successfully, but the tabhost disappears.</p>
  
  <pre><code>Fragment newFragment = new Fragment5();
  FragmentTransaction transaction = getFragmentManager().beginTransaction();
  transaction.replace(R.id.content, newFragment);
  transaction.addToBackStack(null);
  transaction.commit();
  </code></pre>
  
  <p>Basically works, but is there only one way? any efficient solutions else for my case?</p>