title: Accessing TextView from another class
body: <p>I've got my main startup class loading main.xml but I'm trying to figure out how to access the TextView from another class which is loading information from a database. I would like to publish that information to the TextView.</p>
  
  <p>So far I've not found any helpful examples on Google.</p>
  
  <p>EDIT:
  This is my class that is doing the Database work:</p>
  
  <pre><code>import android.widget.TextView;import android.view.View; 
  public class DBWork{
      private View view;
  ...
  TextView tv = (TextView) view.findViewById(R.id.TextView01);
  tv.setText("TEXT ME")
  </code></pre>
  
  <p>Yet, everytime I do that I get a nullpointerexception</p>