我正在使用 Vungle SDK 5.1.0。
在清单中:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
[...]
<activity android:name="com.vungle.publisher.VideoFullScreenAdActivity"
android:configChanges="keyboardHidden|orientation|screenSize|screenLayout|smallestScreenSize"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"/>
<activity android:name="com.vungle.publisher.MraidFullScreenAdActivity"
android:configChanges="keyboardHidden|orientation|screenSize|screenLayout|smallestScreenSize"
android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen"/>
<activity android:name="com.vungle.publisher.FlexViewAdActivity"
android:configChanges="keyboardHidden|orientation|screenSize|screenLayout|smallestScreenSize"
android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen"/>
在我的第一个活动中:
final VunglePub vunglePub = VunglePub.getInstance();
[...]
vunglePub.init(this, "XXXXX", new String[] { "PLACEMEXXXXX" }, new VungleInitListener() {
@Override
public void onSuccess() {
}
@Override
public void onFailure(Throwable e){
}
});
[...]
@Override
protected void onPause() {
super.onPause();
vunglePub.onPause();
}
@Override
protected void onResume() {
super.onResume();
vunglePub.onResume();
}
在我的主要活动中:
final VunglePub vunglePub = VunglePub.getInstance();
final AdConfig globalAdConfig = vunglePub.getGlobalAdConfig();
[...]
@Override
protected void onPause() {
super.onPause();
vunglePub.onPause();
}
@Override
protected void onResume() {
super.onResume();
vunglePub.onResume();
}
如果我尝试打电话
vunglePub.playAd("PLACEMEXXXXX", globalAdConfig);
我注意到了。无广告。以及如何解决我的问题的想法?