How do I call a JAVA code when the user starts the app?

0 favourites
  • 1 posts
From the Asset Store
Create your own casino app and import it to Google Play and the App Store.
  • I want to integrate Appodeal's ad network (new network with highest eCPM on the market right now, around $10 ecpm). They already created the cordova plugin and I managed to use it when building through intel XDK. However, I don't know how to initialize the Appodeal SDK.

    Here's their documentation (click on phonegap): http://www.appodeal.com/sdk/

    Apparently all is needed to do, after importing the cordova plugin, is to initialize the SDK by calling this code:

    String appKey = "fee50c333ff3825fd6ad6d38cff78154de3025546d47a84f";
              Appodeal.initialize(appKey);[/code:27e5urhq]
    
    However, that is JAVA and not JavaScript, so I have no idea where to place that in order to get called when the user starts the app.
    
    If I can get the SDK to initialize then I can call the ads by using Execute Javascript within construct 2 (for example: Appodeal.show(adTypes); ).
  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)