title: There is no onActivityResult() in Fragment. For in-app Billing
body: <p>I am following the tutorial and code examples from <a href="http://developer.android.com/google/play/billing/billing_integrate.html" rel="nofollow">Google</a> on how to implement in-app Billing. The thing is that I'm doing this in a Fragment.</p>
  
  <p>Up until the last step everything seem to implement alright, but then I'm supposed to implement this method:</p>
  
  <pre><code>@Override
      protected void onActivityResult(int requestCode, int resultCode, Intent data) {
          Log.d(TAG, "onActivityResult(" + requestCode + "," + resultCode + "," + data);
          if (mHelper == null) return;
  
          // Pass on the activity result to the helper for handling
          if (!mHelper.handleActivityResult(requestCode, resultCode, data)) {
              // not handled, so handle it ourselves (here's where you'd
              // perform any handling of activity results not related to in-app
              // billing...
              super.onActivityResult(requestCode, resultCode, data);
          }
          else {
              Log.d(TAG, "onActivityResult handled by IABUtil.");
          }
      }
  </code></pre>
  
  <p>And the problem is of course that this protected method doesn't exist in the fragment. There is only a public method, that doesn't get called when finishing a in-app purchase.  </p>