title: Pass TextView to an Intent in Android
body: <p>In new project in Android I have a layout with a TextView and a TabWidget in the main.xml file.</p>
  
  <p>My tab menu launches different activities using Intents, in these activities I need to do:</p>
  
  <pre><code>TextView title = (TextView)findViewById(R.id.titolo);
          title.setText("Home");
  </code></pre>
  
  <p>but I can do this only in the main activity while if I try to do this in other activities I get a nullpointer exception.. What is the problem?</p>
  
  <p>In the manifest I inserted other activities like this, is this the problem?</p>
  
  <pre><code>&lt;activity android:name="List1"&gt;&lt;/activity&gt;
  </code></pre>
  
  <p>I tryed using</p>
  
  <pre><code>LayoutInflater li = (LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE);
  View row = li.inflate(R.layout.main, null);
  TextView title = (TextView)row.findViewById(R.id.titolo);
  </code></pre>
  
  <p>I get no errors but the title didn't change</p>