FragmentManager replace vs Add
<p>In my application i have a <code>FrameLayout</code> on which i am adding various fragments</p>

<pre><code>FragmentManager fm = getSupportFragmentManager();
FragmentTransaction ft = fm.beginTransaction();
ft.replace(R.id.fragment_content, fragment, fargmentTag);
ft.commit();
</code></pre>

<p>Now it seems when i use the <code>ft.replace(R.id.fragment_content, fragment, fargmentTag);</code> and then in other places call </p>

<pre><code>getSupportFragmentManager().findFragmentByTag(fargmentTag); 
</code></pre>

<p>I always get <code>null</code>. However if i use <code>add</code> instead of <code>replace</code> this problem is fixed but another problem appears that each fragment is added ontop of the other fragment and i can see the other fragments below. Now  i would prefer to use <code>replace</code>, but i need the saved fragment state ? Also to be noted i am not using <code>addToBackStack</code> ? Can anyone please help me. </p>
