title: Error on instance second fragment on viewPager
body: <p>i'm doing a simple viewpager, my main is a FragmentActivity like this:</p>
  
  <pre><code> @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_vtg_main);
  
      Log.w("bug bug", " ------------------------------------------------- inicia");
  
      actionBar = getActionBar();
      actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
  
      Log.w("bug bug", " ------------------------------------------------- get act");
  
      fragmentos = new ArrayList&lt;Fragment&gt;();
      fragmentos.add(new FragmentLineas());
      fragmentos.add(new FragmentMedicamentos());
  
  
      mViewPager = (ViewPager) findViewById(R.id.pager);
      mViewPager.setAdapter(new CustomPagerAdapter(getSupportFragmentManager()));
  }
  </code></pre>
  
  <p>the layout:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent" &gt;
  
      &lt;android.support.v4.view.ViewPager
      android:id="@+id/pager"
      android:layout_width="match_parent"
      android:layout_height="match_parent" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>The Fragment:</p>
  
  <pre><code>package co.com.smartmedia.vademtg;
  
  import android.support.v4.app.Fragment;
  import android.os.Bundle;
  import android.view.LayoutInflater;
  import android.view.View;
  import android.view.ViewGroup;
  
  public class FragmentLineas extends Fragment {
  
      private View myView;
  
      public FragmentLineas() {
          // TODO Auto-generated constructor stub
      }
  
      @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container,
              Bundle savedInstanceState) {
          // TODO Auto-generated method stub
          myView = super.onCreateView(inflater, container, savedInstanceState);
  
          getActivity().setContentView(R.layout.frame_lineas_layout);
  
          return myView;
      }
  
  }
  </code></pre>
  
  <p>(the other fragment is the same code but with diferent object name)
  and The layout for each fragment is the following:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent" &gt;
  
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>The Error i'm getting:</p>
  
  <pre><code>07-01 08:09:40.168: E/FragmentManager(1888): No view found for id 0x7f060000 (co.com.smartmedia.vademtg:id/pager) for fragment FragmentMedicamentos{41c4cb78 #1 id=0x7f060000}
  </code></pre>
  
  <p>i don't know what to do, it's too simple, but when i create the second fragment object:</p>
  
  <pre><code>fragmentos.add(new FragmentLineas());
  fragmentos.add(new FragmentMedicamentos());  //this onee
  </code></pre>
  
  <p>The error appears, and if i swap those lines, the error changes to the second  Class object.</p>
  
  <p>Any ideas ?</p>