Error while using onActivityResults() method
<p>I am doing a test Paypal Application from this <a href="http://androiddevelopement.blogspot.in/2011/04/adding-paypal-payment-in-android.html" rel="nofollow">link</a>. Following is part of my code, </p>

<pre><code>@Override
protected void onActivityResults(int requestCode, int resultCode, Intent data) 
{
    super.onActivityResult(requestCode, resultCode, data);
    System.out.println ( "Result Code : " + resultCode );
    switch(resultCode) 
    {
    case Activity.RESULT_OK:
        System.out.println ( "Success" );
        break;
    case Activity.RESULT_CANCELED:
        System.out.println ( "Canceled" );
        break;
    case PayPalActivity.RESULT_FAILURE:
        System.out.println ( "Result Failure" );
    }
}
</code></pre>

<p>As long as I add <code>@Override</code> it starts showing me the following error:</p>

<blockquote>
  <p>The method onActivityResults(int,int,Intent) of type MainActivity must override or implement a supertype method </p>
</blockquote>

<p>This is the image : </p>

<blockquote>
  <p><img src="http://i.stack.imgur.com/XTwMX.png" alt="enter image description here"></p>
</blockquote>

<p>If I remove <code>@Override</code> line, everything works fine but method <code>onActivityResults()</code> doesn't get called.</p>

<p>What should I do to remove this error?</p>
