title: Android - findViewById(R.id.list) returns null
body: <p>I have a class that is called when my app launches.</p>
  
  <pre><code>public class MainActivity extends Activity implements NetworkEvent.
  </code></pre>
  
  <p>In this situation, </p>
  
  <pre><code>list = (ListView) findViewById(R.id.list);
  </code></pre>
  
  <p>works perfectly. However if I then call a new intent via:</p>
  
  <pre><code>   String[] names = object.names();
  </code></pre>
  
  <p>Intent myIntent = new Intent(MainActivity.this, SimpleList.class);
     myIntent.putExtra("names", names);
     startActivityForResult(myIntent, 0);</p>
  
  <p>where SimpleList is defined as:</p>
  
  <pre><code>public class SimpleList extends ListActivity implements NetworkEvent
  </code></pre>
  
  <p>then when I call</p>
  
  <pre><code>   list=(ListView) findViewById(R.id.list);
  </code></pre>
  
  <p>Log.i("MyApp", "List:" + list);</p>
  
  <p>from within the SimpleList class, list is null :(</p>
  
  <p>How come? Both classes are within the same package.</p>
  
  <p>Thanks.</p>