M mywmshow Member Mar 31, 2021 #1 I have a piece of java code and I don't know how to write it in the inline code of B4A. InteractionExpressActivity.java: public void onRenderSuccess(View view, float width, float height) { TToast.show(mContext, "ok"); mTTAd.showInteractionExpressAd(InteractionExpressActivity.this); } I tried this, but the result was incorrect! B4A: public void onRenderSuccess(View view, float width, float height) { processBA.Log("ok"); mTTAd.showInteractionExpressAd(processBA.activity); } May I ask how to write this, trouble everyone!
I have a piece of java code and I don't know how to write it in the inline code of B4A. InteractionExpressActivity.java: public void onRenderSuccess(View view, float width, float height) { TToast.show(mContext, "ok"); mTTAd.showInteractionExpressAd(InteractionExpressActivity.this); } I tried this, but the result was incorrect! B4A: public void onRenderSuccess(View view, float width, float height) { processBA.Log("ok"); mTTAd.showInteractionExpressAd(processBA.activity); } May I ask how to write this, trouble everyone!
Erel B4X founder Staff member Licensed User Longtime User Mar 31, 2021 #2 B4X: mTTAd.showInteractionExpressAd(mostCurrent); It will only work if the activity isn't currently paused.
B4X: mTTAd.showInteractionExpressAd(mostCurrent); It will only work if the activity isn't currently paused.
M mywmshow Member Mar 31, 2021 #3 Thank you very much for your reply, it solved my problem perfectly. ??????