【发布时间】:2014-07-16 14:03:00
【问题描述】:
这快把我逼疯了!我花了超过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:
有人可以帮我添加这个简单的讨厌的横幅吗?
【问题讨论】:
标签: android cordova webview cordova-3 startapp