Android的AdMob的消耗更多的CPU [英] Android admob consuming more cpu
问题描述
由于笔者综合了AdMob的看法我的应用程序,该应用程序格罗斯的CPU占用率至12%,所有的时间。如果我停用广告,那么CPU使用率变成0 presently我通过集成XML集成的广告。
Since I integrated the AdMob view on my app, the CPU usage of the app grose to 12% all the time. If i disable ads, then cpu usage become 0. Presently i integrated ads integrated through xml.
推荐答案
它极有可能造成的,因为Admob的使用HTML - 的WebView呈现广告。取决于设备,它会引起疼痛的looot
It's most probably caused because Admob uses HTML - WebView to render Ads. Depending on device, it causes a looot of pain.
尝试增加硬件加速的活动,其显示广告。
Try adding hardware acceleration on activity which displays the Ad.
<activity android:hardwareAccelerated="true" />
或整个应用程序:
Or the whole App:
<application android:hardwareAccelerated="true" />
或者尝试一些其他的配置更具体的:
Or try some other configuration more specific:
http://developer.android.com/guide/topics/显卡/硬件accel.html
这篇关于Android的AdMob的消耗更多的CPU的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!