public override void OnDestroy()
        {
            base.OnDestroy();

            if (TextUtils.IsEmpty(edtApplicationID.Text))
            {
                Toast.MakeText(this.Activity, "Please Enter Application Id", ToastLength.Short).Show();
                return;
            }

            if (TextUtils.IsEmpty(edtSecurityKey.Text))
            {
                Toast.MakeText(this.Activity, "Please Enter Security Key", ToastLength.Short).Show();
                return;
            }

            // saving applicationID and SecurityKey for SDK locally
            String applicationId = edtApplicationID.Text.Trim();
            String securityKey   = edtSecurityKey.Text.Trim();

            PokktStorage.SetAppId(this.Activity, applicationId);
            PokktStorage.SetSecurityKey(this.Activity, securityKey);

            // Updating PokktConfig in PokktSDk in case it is changed from this screen.
            PokktAds.SetPokktConfig(applicationId, securityKey);
        }
Beispiel #2
0
 private void InItPokktSDK()
 {
     PokktAds.SetNativeExtentions(new AndroidExtension(this));                                // Required for communication with PokktSDK. Should be the first line
     PokktAds.SetThirdPartyUserId("123456");                                                  // optional
     PokktAds.Debugging.ShouldDebug(true);                                                    // optional, set it to true if you want to enable logs for PokktSDK
     PokktAds.SetPokktConfig(PokktStorage.GetAppId(this), PokktStorage.GetSecurityKey(this)); // required
 }