title: Getting the content of the Intent's Extra in new Activity
body: <p>I send data from one <code>Activity</code> (actually a <code>Fragment</code> in my case) to a new <code>Activity</code> using an <code>Intent</code>. Here's the code I use:</p>
  
  <pre><code>Intent detailIntent = new Intent(getActivity(), NewActivity.class);
  detailIntent.putExtra("News", n);
  startActivity(detailIntent);
  </code></pre>
  
  <p>I know how to get the data in my <code>NewActivity</code> using</p>
  
  <pre><code>News news = (News) getIntent().getSerializableExtra("News");
  </code></pre>
  
  <p>and then populate the different UI components that I created in the XML. </p>
  
  <p>but where should those lines of code be. There are multiple methods that it could possibly live in: </p>
  
  <pre><code>protected void onCreate(Bundle savedInstanceState)
  public View onCreateView(String name, Context context, AttributeSet attrs)
  public View onCreateView(View parent, String name, Context context, AttributeSet attrs)
  </code></pre>