Android AndEngine LeadBolt integration

747 Views Asked by At

I just finished my android app and I want to try LeadBolt ads.

LeadBolt information: enter image description here

Java code:

    @Override
public void onLoadComplete() {
    // TODO Auto-generated method stub
    myController = new AdController(this, "169901169");
    myController.loadAd();

}

LeadBolt notification isn't shown. Why?!

2

There are 2 best solutions below

1
On

You are running notifications, but in your code you have the following lines : myController = new AdController(this, "169901169"); myController.loadAd();

Please change them to (as mentioned in the PDF documentation): myController = new AdController(getApplicationContext(), "169901169"); myController.loadNotification();

The notification ads should then be working correctly.

0
On

Notifications requires more operations. First of all, change Manifest, then follow LeadBolt documantation