title: Android startActivity() crashing
body: <p>Basic disclaimer; I am new to mobile app programming in general, and android in particular.</p>
  
  <p>I have a button that, when clicked, should open the next activity:</p>
  
  <pre><code>bCustom.setOnClickListener(new View.OnClickListener() {
      public void onClick(View view) {
          Intent i = new Intent(ctx, DiceCustomList.class);
          startActivity(i);
      }
  });
  </code></pre>
  
  <p>(where "private Context ctx = this;" because putting "this" where "ctx" is did not get the context when inside onClick)</p>
  
  <p>The program crashes before the current activity is obscured (though I'm not sure how transitions affect this). After commenting out nearly everything, here's the activity it's calling:</p>
  
  <pre><code>public class DiceCustomList extends ListActivity {
      @Override
      public void onCreate(Bundle savedInstanceState){
          super.onCreate(savedInstanceState);
          setContentView(R.layout.custom_list);
      }
  }
  </code></pre>
  
  <p>And custom_list.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="vertical"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"&gt;
      &lt;TextView android:text="@string/rollText"
          android:id="@+id/textRoll2"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:textSize="11pt"
          android:gravity="center"/&gt;
      &lt;ListView android:layout_height="wrap_content"
          android:id="@+id/listView1"
          android:layout_width="fill_parent"/&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>I think the problem lies in the button code, but I can't seem to get closer to the answer than that.</p>
  
  <p>Edit: The android manifest file does have:</p>
  
  <pre><code>&lt;activity android:name=".DiceCustomList"&gt;&lt;/activity&gt;
  </code></pre>
  
  <p>Edit 2: Ah, after finally finding where Eclipse hides the stacktrace, it told me this: "Your content must have a ListView whose id attribute is 'android.R.id.list'", by which they actually mean "@+id/android:list". Well, that was interesting. (Edit3: By which I mean, it was the answer. Thanks for the prompting.)</p>