如何从项目中删除或禁用 startapp 广告 在此处输入链接描述
2260 次
2 回答
0
你的项目里面有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" />
于 2017-05-08T19:50:35.407 回答
0
转到 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
为您不想要的每个站点添加一行。
于 2017-05-08T17:00:02.347 回答