title: Adding multiple instances of the same fragment
body: <p>I am attempting to add multiple instances of the same fragment to an activity. Example code is </p>
  
  <pre><code>    FragmentManager fm = getSupportFragmentManager();
      Fragment fragment = fm.findFragmentById(R.id.fragment_content);
  
      FragmentTransaction ft = fm.beginTransaction();
  
      for (int x = 1; x &lt; 5; x = x + 1) {
          Log.i("frag","x="+x);
          ft.add(R.id.fragment_content, new SpecimenFragment(),"x_"+x);           
      }
  
      ft.commit();
  </code></pre>
  
  <p>When the activity runs there is only one instance of the fragment added - why?</p>
  
  <p>For info the fragments are being inserted into an XML layout for the activity and the 
  R.id.fragment_content referenced in the code is defined as :</p>
  
  <pre><code>&lt;FrameLayout
      android:id="@+id/fragment_content"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent" /&gt;
  </code></pre>