i want to implement Appbrain interstitial ad on my live wallpaper settings,
i followed steps given on - http://www.appbrain.com/info/sdk-docs/interstitial.html
@Override
public void onBackPressed() {
AppBrain.getAds().maybeShowInterstitial(this);
finish();
}
Note: eclipse red underline on onBackPressed()
The eclipse is giving error:
The method onBackPressed() of type SBLiveWallpaper must override or implement a supertype method
One quick fix is: Remove @override annotation
What is the solution?
Update: Here is the screenshot: http://prntscr.com/558my0
All that @Override annotation is doing is letting you know that the method is supposed to override a super class implementation of that method. If you are getting an error, that means it is not overriding anything and it is just a normal method. Check that you are implementing the correct interfaces or extending the correct super class that contains the onBackPressed method.