Android广告的效果会大大降低 [英] Android ads slow performance very much

查看:88
本文介绍了Android广告的效果会大大降低的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在上尝试在Android应用上使用BANNER广告指导.当广告加载并呈现时,观察到FPS明显下降.对于用户而言,这是非常令人沮丧的体验,因为View动画是我的应用程序的核心部分,并且在低FPS时看起来很糟糕.
当我将adView设置为View.GONE时,一切运行正常.我不知道此问题可能源于何处.我不确定UI线程如何通过简单的BANNER广告变得如此繁重...这里有什么建议吗?
这个问题在我的模拟器和实际的Android设备中都存在.

I have been experimenting with BANNER ads on my Android app, following this guide. When the ad load and is being presented a significant FPS drop is observed. This is very frustrating experience for the user, because View animations are core part of my app and they look awful in low FPS.
Everything runs fine when I set the adView to View.GONE. I don't know where this problem might be originating from. I'm not sure how the UI thread becomes so heavily loaded with a simple BANNER ad... Any suggestions here?
This problem is present both in my emulator and real Android device.

推荐答案

Google AdView的WebView内有很多动画.它将加热所有移动CPU.

Google AdView has WebView with a lot of animation inside. It will heats up all mobile CPU.

总结这是正常的.我的申请中有同样的情况. AdView占用30%的CPU.我试图找到任何解决方案,但这是已知问题.下面的链接可以帮助您优化横幅,但您必须知道,它总是要占用一些CPU.

Summing up it's normal. I have the same situation in my applications. AdView take 30% of CPU. I tried to find any solution but it's known issue. Below links can help you optimize your banners but you have to know that, it will always take some of CPU.

stackoverflow-admob标语导致cpu使用率高

stackoverflow-webviewcorethread admob adview使用的是cpu较高的

stackoverflow-android admob消耗了更多的cpu

pzoleeblogen-如何解决adview cpu消耗

如果我能帮助您,请对我的回答投票. 玩得开心.

Please vote up my answer if I help you. Have fun.

这篇关于Android广告的效果会大大降低的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆