title: Changing a textview in a separate activity in android
body: <p>I have a log in page that pulls information from a data base, I then want to use this some of this information to populate different textviews on a new page/activity.  I can get a textview to change on the activity where I have my submit button, but when I try to change the textview on my second activity, it just crashed (The application has stopped unexpectedly).</p>
  
  <p>Here's my code for changing the textview (where txtID is my textview on a separate activity)</p>
  
  <pre><code>TextView test2 = (TextView) findViewById(R.id.txtID);
  test2.setText(test);
  </code></pre>
  
  <p>my xml for seperate activity</p>
  
  <pre><code>&lt;TextView android:text="TextView" android:id="@+id/txtID"
  android:layout_width="wrap_content" android:layout_height="wrap_content"&gt;&lt;/TextView&gt;
  </code></pre>
  
  <p>Oh, I'm using a tableview for my login page, then tabs for my the rest of my pages.  I'm pretty new to this, so sorry if this is something simple, but any help would be greatly appreciated!! :-)</p>