title: fragment.getview() always return null when called in an activity
body: <p>I have this problem where the fragment.getView() always returns null when called inside another activity despite the fact the the onCreateView method was overriden in side the fragment.</p>
  
  <p>For example:
  In my activity:</p>
  
  <pre><code>frag = new NewBooksFrag();
  </code></pre>
  
  <p>In my fragment:</p>
  
  <pre><code>    @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container,
          Bundle savedInstanceState) {
      // TODO Auto-generated method stub
      View view = null;
  
      view = inflater.inflate(R.layout.new_book_frag, container,true);
  
      return view;
  }
  </code></pre>
  
  <p>but when i call</p>
  
  <pre><code>frag.getView()
  </code></pre>
  
  <p>it stills returns null. Any idea why is this happening? Because in the android documentation, it clearly states getView():</p>
  
  <p>"Get the root view for the fragment's layout (the one returned by onCreateView(LayoutInflater, ViewGroup, Bundle)), if provided."</p>
  
  <p>if this returns null, how can we reference to the view of the fragment?</p>
  
  <p>Thanks in advance</p>