title: Calling startIntentSenderForResult from Fragment (Android Billing v3)
body: <p>The new Android Billing v3 documentation and helper code uses <code>startIntentSenderForResult()</code> when launching a purchase flow. I want to start a purchase flow (and receive the result) from a <code>Fragment</code>.</p>
  
  <p>For example the <a href="http://developer.android.com/google/play/billing/billing_integrate.html#billing-requests" rel="noreferrer">documentation</a> suggests calling</p>
  
  <pre><code>startIntentSenderForResult(pendingIntent.getIntentSender(),
      1001, new Intent(), Integer.valueOf(0), Integer.valueOf(0),
      Integer.valueOf(0));
  </code></pre>
  
  <p>and the <a href="http://developer.android.com/training/in-app-billing/purchase-iab-products.html#Purchase" rel="noreferrer">helper code</a> calls</p>
  
  <pre><code>mHelper.launchPurchaseFlow(this, SKU_GAS, 10001,   
      mPurchaseFinishedListener, "bGoa+V7g/yqDXvKRqq+JTFn4uQZbPiQJo4pf9RzJ");
  </code></pre>
  
  <p>which calls <code>startIntentSenderForResult()</code>.</p>
  
  <p>The problem is, calling <code>startIntentSenderForResult()</code> causes <code>onActivityResult()</code> to be called on the parent <code>Activity</code> rather than on the <code>Fragment</code> that it was called from (where the <code>IabHelper</code> resides).</p>
  
  <p>I could receive the <code>onActivityResult()</code> in the parent <code>Activity</code> and then manually call the <code>onActivityResult()</code> on the <code>Fragment</code>, but is there a way to make a call to <code>startIntentSenderForResult()</code> from a <code>Fragment</code> that returns the result directly to that <code>Fragment</code>'s <code>onActivityResult()</code>?</p>