Reputation: 1174
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.
Upvotes: 21
Views: 8826
Reputation: 3896
Google AdView has WebView with a lot of animation inside. It will heats up all mobile 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 banners cause high cpu usage
stackoverflow - webviewcorethread used by admob adview is using high cpu
stackoverflow - android admob consuming more cpu
pzoleeblogen - how to solve adview cpu consuming
Please vote up my answer if I help you. Have fun.
Upvotes: 20