【发布时间】:2012-09-26 19:12:29
【问题描述】:
我已经在我的 android 应用程序中使用了带有 ad-whirl 的 admob 4.3.1……但我也想使用 Inmobi……但我不知道我是否必须更改我的代码中的某些内容……我读过那 inmobi 需要 Adwhirl 3.0.0 sdk ......但我使用的是 3.1.1 和 admob ...... 任何帮助请...
我放了 3 个 SDK...使用了所需的权限,, 声明这两个活动:
<activity android:name="com.google.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation"/>
<!-- Mandatory activity declaration to show the Ad in the embedded browser -->
<activity android:name="com.inmobi.androidsdk.IMBrowserActivity"
android:configChanges="keyboardHidden|orientation|keyboard" />
这在我的活动中:
LinearLayout adLayout = (LinearLayout) findViewById(R.id.ads);
AdWhirlLayout adWhirlLayout = new AdWhirlLayout(this, "Key");
RelativeLayout.LayoutParams adWhirlLayoutParams = new RelativeLayout.LayoutParams(LayoutParams.FILL_PARENT,
LayoutParams.WRAP_CONTENT);
adLayout.addView(adWhirlLayout, adWhirlLayoutParams);
【问题讨论】: