Admob / Adwhirl 更改活跃活动?

发布于 2024-11-08 19:11:45 字数 273 浏览 7 评论 0原文

我的问题是关于 Admob / Adwhirl 以及加载广告时将激活的活动。

我有一个 TabActivity,其中一个选项卡包含两个视图(两个单独的意图),在这两个意图上,我获取 onBackPressed 以了解是否必须在当前选项卡中的视图之间切换。这一切都工作正常,直到我加载广告。

当我激活 Admob / Adwhirl 时, onBackPressed 会在 TabActivity 本身上触发,而不是在当前选项卡内的意图上触发。

关于如何防止/解决这个问题有什么想法吗?

My problem is about Admob / Adwhirl and the activity that will become active when an ad is loaded.

I have a TabActivity and one of the tabs contains two views (two separate intents), on those two intents I fetch the onBackPressed to know if I have to switch between the views in the current tab. This all works fine, until I load the ads.

When I activate Admob / Adwhirl onBackPressed is triggered on the TabActivity itself and not on the intents inside the current tab.

Any idea on how to prevent / fix this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文