我正在尝试将Leadbolt图标广告集成到 Android 应用程序中。我遵循了操作指南: http: //www.leadbolt.com/docs/Leadbolt_android_app_guide_v304.pdf。以下是相关代码:
<uses-permission android:name="android.permission.SET_WALLPAPER" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<!-- LeadBolt -->
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS"/>
启动器活动的 onCreate:
String leadboltIconId = Application.getInstance().getLeadboltIconId();
Log.d(TAG, "leadboltIconId: >" + leadboltIconId + "<");
AdController adController = new AdController(this, leadboltIconId, this);
adController.loadIcon();
“leadboltIconId”填写正确。这是配置屏幕的 ss:
和详细信息屏幕:
我正在使用带有 2.3.3 的模拟器。它也不适用于我的 HTC Incredible with CM7 ( 2.3.3 )。日志中没有错误。该活动实现了 AdListener,并且没有调用任何方法。