【问题标题】:How to Remove or disable startapp ads from project如何从项目中删除或禁用 startapp 广告
【发布时间】:2017-10-06 18:46:56
【问题描述】:

如何从项目中删除或禁用 startapp 广告 enter link description here

enter link description here

【问题讨论】:

  • 请具体说明您要问的问题并指定相关的内容。

标签: java xml project disabled-input startapp


【解决方案1】:

转到 etc/hosts 或 \Windows\System32\driver\etc\hosts 并输入以下行:

127.0.0.1    google.analytics // redirect link to local host
127.0.0.1    shop.arian-it.ir // for your site

为您不想要的每个站点添加一行。

【讨论】:

  • 如何从项目 startapp ads sdk 中删除或禁用 startapp 广告
【解决方案2】:

您的项目中有StartAppInApp-3.5.6.jar,可能有不同的版本。在您的项目中找到它并将其删除。这个 jar 可能在您项目的 libs 文件夹中。

当您删除 jar 时,您会在项目中看到很多错误。删除那些错误的行,其中一些在下面。

public StartAppAd startAppAd;

StartAppSDK.init(HomeScreen.this, "204893117", true);
startAppAd = new StartAppAd(HomeScreen.this);
startAppAd.loadAd(new AdEventListener() {
        @Override
        public void onReceiveAd(Ad arg0) {
            startAppAd.showAd();
        }

        @Override
        public void onFailedToReceiveAd(Ad arg0) {
            // TODO Auto-generated method stub

        }
    });

并从AndoridMainifest.xml中删除这些活动条目

<activity android:name="com.startapp.android.publish.list3d.List3DActivity"
          android:screenOrientation="portrait"
          android:theme="@android:style/Theme" />

<activity android:name="com.startapp.android.publish.OverlayActivity"
          android:configChanges="orientation|keyboardHidden|screenSize"
          android:screenOrientation="portrait"
          android:theme="@android:style/Theme.Translucent" />

<activity android:name="com.startapp.android.publish.FullScreenActivity"
          android:configChanges="orientation|keyboardHidden|screenSize"
          android:screenOrientation="portrait"
          android:theme="@android:style/Theme" />

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多