I tried to make this:
But I get this message:
Cannot access activity object from sub Process Globals
I want to move this code from @Erel to a service, but I don't know how I can do this:
https://www.b4x.com/android/forum/threads/firebaseadmob-rewarded-video-ads.71430/
Thanks in advance for any tips.
B4X:
Sub Process_Globals
Private ad As RewardedVideoAd
End Sub
But I get this message:
Cannot access activity object from sub Process Globals
I want to move this code from @Erel to a service, but I don't know how I can do this:
https://www.b4x.com/android/forum/threads/firebaseadmob-rewarded-video-ads.71430/
Thanks in advance for any tips.