title: onActivityResult not being called when ListActivity finishes
body: <p>In a small app I'm working on, I need to be able to select a record from a database table.</p>
  
  <p>In order to do that, I've created a subclass of <code>ListActivity</code>, <code>GameListScreen</code>, which displays the records, and overridden <code>onListItemClick()</code> as follows:</p>
  
  <pre><code>@Override
  protected void onListItemClick(ListView l, View v, int position, long id) {
      Game g = (Game)getListView().getItemAtPosition(position);
      Intent intent = new Intent();
      intent.putExtra("id", g.getId());
      setResult(RESULT_OK, intent);
      finish();
  }
  </code></pre>
  
  <p>Then, in order to launch my activity, I have this in my <code>MainMenu</code> activity; an <code>onClick</code> handler for a <code>Button</code>:</p>
  
  <pre><code>public void openGameClick(View view) {
      Intent intent = new Intent(this, GameListScreen.class);
      startActivityForResult(intent, -1);
  }
  </code></pre>
  
  <p>and to get the result, also in the <code>MainMenu</code> class: </p>
  
  <pre><code>@Override
  protected void onActivityResult(int requestCode, int resultCode, Intent data) {
      if (resultCode == Activity.RESULT_OK) {
          // result is handled here
      }
  }
  </code></pre>
  
  <p>Everything works exactly as expected - the ListActivity starts, I can see my records, and when I select one, onListItemClick is being run - but <code>onActivityResult</code> is not getting called, and I have no idea why. In another project, I follow the same basic principle, and it works there.</p>
  
  <p>What am I missing here? I'm sure it's a simple mistake, but I can't spot it.</p>
  
  <p>I've uploaded <a href="http://birdiesoft.dk/PokeAssistant.7z" rel="nofollow">my project</a> in case it helps. I'm using Android 2.2 to test, since that's what my phone is using.</p>