不出现smartWall广告airpush
import com.devmobby.dbel.R;
import com.fxxylrmjq.hnqqtdyue156508.AdCallbackListener;
import com.fxxylrmjq.hnqqtdyue156508.AirPlay;
import android.app.Activity;
import android.os.Bundle;
public class Test extends Activity implements AdCallbackListener{
private AirPlay airPlay; //Declare AirPlay here
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
if(airPlay==null)
airPlay=new AirPlay(this, null, true);
airPlay.startSmartWallAd();
}
@Override
public void onAdCached(AdType adType) {
airPlay.showCachedAd(this, AdType.appwall);
}
@Override
public void onAdError(String arg0) {
// TODO Auto-generated method stub
}
@Override
public void onSDKIntegrationError(String arg0) {
// TODO Auto-generated method stub
}
@Override
public void onSmartWallAdClosed() {
// TODO Auto-generated method stub
}
@Override
public void onSmartWallAdShowing() {
// TODO Auto-generated method stub
}
@Override
public void onVideoAdFinished() {
// TODO Auto-generated method stub
}
@Override
public void onVideoAdShowing() {
// TODO Auto-generated method stub
}
}