title: onActivityResult() called prematurely
body: <p>I start the <code>Activity</code> (descendant of <code>PreferenceActivity</code>) from my worker activity as follows:</p>
  
  <pre><code>@Override
  protected void onActivityResult(int requestCode, int resultCode, Intent data)
  {
      super.onActivityResult(requestCode, resultCode, data);
      if (requestCode == 1458)
          loadInfo();
  }
  
  void showSettingsDialog()
  {
      startActivityForResult(new Intent().setClass(this, MyConfigure.class), 1458);
  }
  </code></pre>
  
  <p><code>MyConfigure</code> class does NOT have any <code>setResult()</code> calls. In fact, <code>MyConfigure</code> class doesn't have any code except <code>OnCreate()</code> where it loads preferences using <code>addPreferencesFromResource</code>. </p>
  
  <p>Now <code>onActivityResult</code> is called with <code>requestCode</code> of <code>1458</code> prematurely, right after <code>MyConfigure</code> activity is run. Tested on 1.6 and 2.1 emulators as well as 2.1 device. Is there a call to <code>setResult()</code> buried somewhere in <code>PreferenceActivity</code>? Or how else can this premature call be explained? </p>