inmobi 广告打不开

发布于 2024-12-05 12:32:26 字数 531 浏览 4 评论 0原文

我已将 inmobi 广告合并到我的 Android 应用程序中。在我的应用程序中,当我打开应用程序时,我可以看到来自 inmobi 的广告。但是当我点击广告时什么也没有发生。我检查了 ddms,它告诉我:

ActivityNotFoundException. no activity found to handle the intent

以下是我的代码片段,

imAdView = new IMAdView(this, IMAdView.INMOBI_AD_UNIT_320X50,"xxxxxxx(my app id kept secret)");
    RelativeLayout layout = (RelativeLayout)findViewById(R.id.adview);
    layout.addView(imAdView);
    imAdView.setIMAdRequest(adRequest);
    imAdView.loadNewAd();

我还需要导入更多内容吗?

I have incorporated inmobi ads in my android app.in my app i can see the ad from inmobi when i open the app. but when i click on the ad nothing happens. and i checked ddms which tells me this:

ActivityNotFoundException. no activity found to handle the intent

The following is my code snippet

imAdView = new IMAdView(this, IMAdView.INMOBI_AD_UNIT_320X50,"xxxxxxx(my app id kept secret)");
    RelativeLayout layout = (RelativeLayout)findViewById(R.id.adview);
    layout.addView(imAdView);
    imAdView.setIMAdRequest(adRequest);
    imAdView.loadNewAd();

do i need to import anything more??

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

戏蝶舞 2024-12-12 12:32:26

我在 InMobi 工作。一切看起来都不错,但可能值得遵循我们的最新教程 - http:// developer.inmobi.com/wiki/index.php?title=Android

I work for InMobi. That all looks ok, but it might be worth following our latest tutorial - http://developer.inmobi.com/wiki/index.php?title=Android

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文