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

Get help using Construct 2

Post » Thu May 21, 2015 6:08 pm

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):

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

Code: Select all
String appKey = "fee50c333ff3825fd6ad6d38cff78154de3025546d47a84f";

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:; ).
Posts: 39
Reputation: 507

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 8 guests