asales Expert Licensed User Longtime User Nov 30, 2018 #1 I tried to make this: 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.
I tried to make this: 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.
Computersmith64 Well-Known Member Licensed User Longtime User Nov 30, 2018 #2 Services cannot show any visible elements except for toast messages - so you can't show an ad from a service. https://www.b4x.com/android/forum/threads/service-modules.7542/#content - Colin. Upvote 0
Services cannot show any visible elements except for toast messages - so you can't show an ad from a service. https://www.b4x.com/android/forum/threads/service-modules.7542/#content - Colin.