title: getActivity() in onCreate() or onCreateView() (in Fragment)
body: <p>I have a simply question. </p>
  
  <p>I have a Fragment which has:</p>
  
  <pre><code>private Context context;
  </code></pre>
  
  <p>and I want:</p>
  
  <pre><code>context = getActivity();
  </code></pre>
  
  <p>So this should be in <code>onCreate()</code> or <code>onCreateView()</code> and why?</p>