title: Fragment.onCreateView() not called in viewpager after configuration change
body: <p>After changing orientation, my activity with viewpager , which is list/detail kind,  is recreated and crashes if I select an item in a list.</p>
  
  <p>I don't want to bother you with all the details (there is a nullpointerexception because a textview referenced in onCreateView() is null). 
  My question is : How can ViewPager display 2 pages with a fragment in each one without even calling their onCreateView()?</p>
  
  <p>How comes it works fine after application launch before turning the device?</p>
  
  <p>I have only 2 pages/fragments.  But I saw with the debugger that 4 fragments are created when this activity is recreated. Do you know why and where this is documented?</p>
  
  <p>Any solution? Thanks in advance for your help. I am at lost here because I don't control the fragments myself, viewpager does.</p>
  
  <p>==========</p>
  
  <p>Update  :  Please find below additional requested information</p>
  
  <pre><code>public class  DetailFragment extends Fragment {
      TextView mDetailTV;
      // Retrieve the data to display from the parent activity
      private String getData() {
          ViewPagerActivity activity = (ViewPagerActivity)getActivity();
          return( activity.detailArray[activity.mPosition] );
      }
      @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
          View view = inflater.inflate(R.layout.layout_detail_fragment, container, false);
          mDetailTV = (TextView)view.findViewById(R.id.detailTV);
          displayDetail(getData());   
          return view;
      }
      // Display data
      void displayDetail(String data) {       
          mDetailTV.setText(data);
      }
  </code></pre>
  
  <p>and the list and details fragments are instantiated and passed to Pager Adapter like that :</p>
  
  <pre><code>mListFragment = new ListFragmentt();
  mDetailFragment = new DetailFragment();
  mPagerAdapter = new MFragmentPagerAdapter(getSupportFragmentManager(), mListFragment, mDetailFragment);
  </code></pre>
  
  <p>Also, the data from the list/detail comes from the classical Skakespeare example, so I doubt there is out of memory on my Samsung S4.</p>