I had the same problem for Google AdMob 4.0.4 and AdWhirl 3.0.0. I
have fixed it by subclassing AdWhirlLayout the following way:
@Override
public void pushSubView(ViewGroup subView) {
RelativeLayout superView = superViewReference.get();
WebView wv = null;
if (superView != null && API_LEVEL <= 4)
wv = getAdViewWebView(superView);
super.pushSubView(subView);
if (wv != null)
wv.destroy();
}
private static WebView getAdViewWebView(ViewGroup v) {
WebView z = null;
for (int i=0; i<v.getChildCount() && z == null; i++) {
View child = v.getChildAt(i);
if (child instanceof WebView) {
if (v instanceof AdView)
z = (WebView)child;;
} else if (child instanceof ViewGroup)
z = getAdViewWebView((ViewGroup)child);
}
return z;
}
private static final int API_LEVEL = getApiLevel();
private static int getApiLevel() {
int sdk = 3;
try {
Field f = Build.VERSION.class.getField("SDK_INT");
sdk = f.getInt(null);
} catch (Throwable t) {
}
return sdk;
}
Hope this helps.
/Michael
On Apr 5, 12:50 am, Taf <
neild...@gmail.com> wrote:
> Hi,
>
> I'm getting a problem with the latest version of Admob 4.0.4 with
> Android 1.6 on an ericsson xperia x10.
>
> I'm seeing some errors in the log cat but I'm not sure if they are the
> cause:
>
> 04-04 23:19:04.531: ERROR/EmojiFactory(20228):
> EmojiFactory::GetAvailableImplementation() start
> 04-04 23:19:04.531: ERROR/EmojiFactory(20228):
> EmojiFactory::GetAvailableImplementation() end failed!
>
> But then after about the third Ad request I get an error and asigsegv. I've had the older version of admob running fine. Initially i