这真让我抓狂!我花了超过5天的时间。怎么了,为什么我的横幅没有显示?我遵循了以下所有说明:https ://github.com/StartApp-SDK/Documentation/wiki/Android-InApp-&-InApp-Plus-Documentation
这是我的主要 java 文件:
package com.Snap.What;
import android.os.Bundle;
import org.apache.cordova.*;
import com.startapp.android.publish.StartAppAd;
import com.startapp.android.publish.StartAppSDK;
public class WhatSnap extends CordovaActivity
{
private StartAppAd startAppAd = new StartAppAd(this);
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
super.init();
// Set by <content src="index.html" /> in config.xml
super.loadUrl(Config.getStartUrl());
//super.loadUrl("file:///android_asset/www/index.html");
StartAppSDK.init(this, "******23", "*******04", true);
}
}
这是我的布局:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<com.startapp.android.publish.banner.Banner
android:id="@+id/startAppBanner"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"/>
</LinearLayout>
横幅根本不显示!
这是我进入应用程序时的 logcat:
有人能帮我添加这个简单的讨厌的横幅吗?