title: How to load new fragment in same space as current fragment
body: <p>I'm looking for some advice on the best way to handle fragments which launch other fragments.</p>
  
  <p>I'm converting an app which I started writing using a more Activity based approach and have since begun moving it over to using Fragments.  I have some Fragments which used to launch a new Activity and I want to move them over to launching other Fragments in the same view that the current Fragment is residing.</p>
  
  <p>For example - I have an Activity which has a WebView which uses a <code>WebViewClient</code> to handle internal js->java interactions.  My WebViewClient can launch other Activities, which I used to do with :</p>
  
  <pre><code> i = new Intent(context, GoogleMapActivity.class);
   startActivity(i);
  </code></pre>
  
  <p>This webview activity can either be fullscreen or in a view with a menu on the side, but I want the webview to respect the layout - so if the menu is present, it should stay present when launching new Fragments - I just don't know the best approach to writing the code which launches the Fragments.</p>
  
  <p>So...is there a way, within a Fragment, of essentially telling a new Fragment to load in to the same space as the current Fragment or does there need to be some interaction with the Activity?</p>
  
  <p>** EDIT **</p>
  
  <p>Given that there are a few different layouts which could be used, I don't always know which id I should be targeting to put the fragment in - hence I need to know if there's a way to do this without knowing the id (as in the <code>replace</code> method for example). </p>