|
public static GSSDK initialize(Context ctx, String appId) |
To initialize the Greystripe SDK, call the initialize method at startup. This should be done within your application’s onResume() method. This call will spawn a background thread to complete initialization and then return control to your app. In the background thread, the Greystripe client will download ads as well as any SDK updates.
Parameters:
ctx
: Your application Context instanceappId
: During testing, use the provided Test App ID which will allows you to test your SDK implementation with a variety of ad types. When creating your production build, use the provided Production App ID and verify that you correctly receive ads. Providing an invalid appId will cause the SDK to display error notification ads. So my problem is that midlet doesn't know anything about Android's Context, how can I get a link to that?