Appbrain interstitial ad implementation error?

Discussion in 'Advertising Discussion' started by Vijay Reddy, Nov 10, 2014.

  1. Vijay Reddy New Guy

    Member Since:
    May 2, 2013
    Message Count:
    5
    Likes Received:
    0
    Trophy Points:
    0
    Hi guys, i want to implement Appbrain interstitial ad, i followed steps given on - http://www.appbrain.com/info/sdk-docs/interstitial.html


    @Override
    public void onCreate()
    ......
    ......

    @Override
    public void onBackPressed() {
    AppBrain.getAds().maybeShowInterstitial(this);
    finish();
    }
    ....
    ....

    Note: eclipse red underline on bold text

    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?
  2. suresh.shael New Guy

    Member Since:
    Aug 11, 2013
    Message Count:
    4
    Likes Received:
    0
    Trophy Points:
    0
    Can you provide the Screen short ? then may be i can help you.
  3. suresh.shael New Guy

    Member Since:
    Aug 11, 2013
    Message Count:
    4
    Likes Received:
    0
    Trophy Points:
    0
    why you using App Brain and others they will generate revenue when user download that app from ads.
    google adsense will pay you /Click, with Adsense you can generate more revenue.
  4. Vijay Reddy New Guy

    Member Since:
    May 2, 2013
    Message Count:
    5
    Likes Received:
    0
    Trophy Points:
    0
  5. Vas Origin

    Member Since:
    Jan 4, 2012
    Message Count:
    770
    Likes Received:
    175
    Trophy Points:
    500
    A service doesn't have an onBackPressed() method. It only applies to activities as far as I know. Try putting it into a splash or settings activity instead.

Share This Page