how to implement fragment in android
<p>am currently messing around with DialogFragment to learn to use it. I assumed that compared to <code>onCreateView()</code>, <code>onCreate()</code> can do this:</p>

<pre><code>public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    testTextView.setText("SUCCESS!"); //ERROR HERE
}
</code></pre>

<p>But I am wrong. Not sure why its not working. The error goes away when I comment out <code>testTextView.setText("Success!");</code> The error is a <code>NullPointerException</code>, and then it just flags line 39 which is where the offending line of code is. Any clarifications much appreciated.</p>
