title: How to return a result (startActivityForResult) from a TabHost Activity?
body: <p>I have 3 classes in my example:
  Class A, the main activity.  Class A calls a startActivityForResult:</p>
  
  <pre><code>Intent intent = new Intent(this, ClassB.class);
  startActivityForResult(intent, "STRING");
  </code></pre>
  
  <p>Class B, this class is a TabActivity:</p>
  
  <pre><code>Intent intent = new Intent(this, ClassC.class);
  tabHost.addTab...
  </code></pre>
  
  <p>Class C, this class is a regular Activity:</p>
  
  <pre><code>Intent intent = this.getIntent();
  intent.putExtra("SOMETHING", "EXTRAS");
  this.setResult(RESULT_OK, intent);
  finish();
  </code></pre>
  
  <p>onActivityResult is called in Class A, but the resultCode is <code>RESULT_CANCELED</code> instead of <code>RESULT_OK</code> and the returned intent is null.  How do I return something from the Activity inside a TabHost?</p>
  
  <p>I realize that the problem is that my Class C is actually running inside of Class B, and Class B is what is returning the <code>RESULT_CANCELED</code> back to Class A.  I just don't know a work around yet.</p>