title: Fragments view is null when orientation changed
body: <p>Im having some problems when it comes to porting my app from the normal activity style to the fragment style. Im beginning to notice that when a fragment gets recreated, or popped from the backstack it loses its views. When I say that Im talking about a listview in particular. What im doing is im loading items into the listview, then rotating the screen. When it goes back through, it gets a nullpointerexception. I debug it and sure enough the listview is null.  Here is the relevant code to the fragment</p>
  
  <pre><code>@Override
      public View onCreateView(LayoutInflater inflater, ViewGroup viewGroup, Bundle savedInstanceState) {
          return inflater.inflate(R.layout.sg_question_frag, viewGroup, false);
  
      }
  
  
      @Override
      public void onActivityCreated(Bundle savedInstanceState) {
          super.onActivityCreated(savedInstanceState);
          list = (ListView)getActivity().findViewById(R.id.sgQuestionsList);
          if (savedInstanceState != null) {
              catId = savedInstanceState.getInt("catId");
              catTitle = savedInstanceState.getString("catTitle");
          }
          populateList(catId, catTitle);
      }
  </code></pre>
  
  <p>And here is how it is called (keep in mind there are a few other fragments that im working with as well)</p>
  
  <pre><code>@Override
      public void onTopicSelected(int id, String catTitle) {
          // TODO Auto-generated method stub
          FragmentManager fm = this.getSupportFragmentManager();
  
          SGQuestionFragment sgQuestFrag = (SGQuestionFragment) fm.findFragmentByTag("SgQuestionList");
          FragmentTransaction ft = fm.beginTransaction();
          //If the fragment isnt instantiated
          if (sgQuestFrag == null) {
  
              sgQuestFrag = new SGQuestionFragment();
              sgQuestFrag.catId = id;
              sgQuestFrag.catTitle = catTitle;
              //Fragment isnt there, so we have to put it there
  
              if (mDualPane) {
                  //TO-DO
                  //If we are not in dual pane view, then add the fragment to the second container
                  ft.add(R.id.sgQuestionContainer, sgQuestFrag,"SgQuestionList").commit();
  
              } else {
                  ft.replace(R.id.singlePaneStudyGuide, sgQuestFrag, "SqQuestionList").addToBackStack(null).commit();
              }
          } else if (sgQuestFrag != null) {
              if (sgQuestFrag.isVisible()) {
                  sgQuestFrag.updateList(id, catTitle);
              } else {
                  sgQuestFrag.catId = id;
                  sgQuestFrag.catTitle = catTitle;
                  ft.replace(R.id.sgQuestionContainer, sgQuestFrag, "SgQuestionList");
                  ft.addToBackStack(null);
                  ft.commit();
                  sgQuestFrag.updateList(id, catTitle);
  
              }
          }
          fm.executePendingTransactions();
      }
  </code></pre>
  
  <p>What I would ultimately want it to do is to completely recreate the activity, forget the fragments and everything and just act like the activity was started in landscape mode or portrait mode. I dont really need the fragments there, I can recreate them progmatically with some saved variables</p>