title: Android @Override error
body: <p>Today I've finally got my facebook implementation working and when I started to implement it in my application I get the following errors over @Override. </p>
  
  <blockquote>
    <p>The method onComplete(Bundle) of type
    FBConnectionActivity.LoginDialogListener
    must override a superclass method</p>
  </blockquote>
  
  <p>If I remove the @Override the error is solved, but I would like to understand why it is complaining about this in one application and not the other.</p>
  
  <p>I've got the following code.</p>
  
  <pre><code>public abstract class FBConnectionActivity extends Activity {
  
  private class LoginDialogListener implements DialogListener {
  
          @Override
          public void onComplete(Bundle values) {
                  Log.d(TAG, "LoginONComplete");
                  String token = mFacebook.getAccessToken();
                  long token_expires = mFacebook.getAccessExpires();
                  Log.d(TAG, "AccessToken: " + token);
                  Log.d(TAG, "AccessExpires: " + token_expires);
                  sharedPrefs = PreferenceManager
                                  .getDefaultSharedPreferences(mContext);
                  sharedPrefs.edit().putLong("access_expires", token_expires)
                                  .commit();
                  sharedPrefs.edit().putString("access_token", token).commit();
                  mAsyncRunner.request("me", new IDRequestListener());
          }
  
          @Override
          public void onFacebookError(FacebookError e) {
                  Log.d(TAG, "FacebookError: " + e.getMessage());
          }
  
          @Override
          public void onError(DialogError e) {
                  Log.d(TAG, "Error: " + e.getMessage());
          }
  
          @Override
          public void onCancel() {
                  Log.d(TAG, "OnCancel");
          }
  }
  
  ...
  
  }
  </code></pre>
  
  <p>This is only a part of the code where the error does occur. But this doesn't have any errors in one application and does have errors in the other.</p>
  
  <p>After some searching I've found that they've change something between Java 5 and 6. But I suppose that my application in eclipse use the same java environment.</p>
  
  <p>Hopefully someone can explain why this is. </p>
  
  <p>Thanks a lot!</p>