我使用StartApp SDK 3.1.1过Android Studio 并点击此链接(显示横幅的第 1 步):
https ://github.com/StartApp-SDK/Documentation/wiki/Android-InApp-Documentation
- 导入 SDK jar
将代码插入AndroidManifest.xml:
和下:
<activity android:name="com.startapp.android.publish.list3d.List3DActivity" android:theme="@android:style/Theme" /> <activity android:name="com.startapp.android.publish.OverlayActivity" android:theme="@android:style/Theme.Translucent" android:configChanges="orientation|keyboardHidden|screenSize" /> <activity android:name="com.startapp.android.publish.FullScreenActivity" android:theme="@android:style/Theme" android:configChanges="orientation|keyboardHidden|screenSize" />StartAppSDK.init(this, "Your Account Id", "Your App ID", true);之前替换了我的帐户 ID 和我的应用 ID 的调用方法setContentView()
4.显示横幅
<com.startapp.android.publish.banner.Banner
android:id="@+id/startAppBanner"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"/>
但是当我构建应用程序横幅时没有显示。