Which is fair enough ;)
all i have to do though, is tap the home button back to the launcher and then look at the app again in DDMS and i see this:
This is the sample app, the only thing ive done is set a test device and filled in a valid ad id. Surely this isnt correct? the app should be taking no CPU use in this state? The only solution ive come across is this code from Simone Bernardini :
https://groups.google.com/d/msg/google-admob-ads-sdk/D6X5yL8Acn4/9CO5k0WFx1EJ
If this is the case then this code should be included in the samples.
Pauses any extra processing associated with this WebView and its associated DOM, plugins, JavaScript etc. For example, if this WebView is taken offscreen, this could be called to reduce unnecessary CPU or network traffic. When this WebView is again "active", call onResume(). Note that this differs from pauseTimers(), which affects all WebViews.
private void pause(AdView p_adView) {
// API...
p_adView.pause();
// Workaround...
try {
WebView webView = getWebView(p_adView);
Class.forName("android.webkit.WebView").getMethod("onPause", (Class[]) null).invoke(webView, (Object[]) null);
}
catch (Exception e) {
if (BuildConfig.DEBUG) {
Log.w(TAG, Log.getStackTraceString(e));
}
}
}