Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
openx_appstore_demo;
import android.content.res.Configuration;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import com.openx.common.utils.helpers.Utils;
import com.openx.core.network.OXAdRequest;
import com.openx.errors.AdError;
import com.openx.model.adParams.AdCallParameters;
import com.openx.view.AdEventsListener;
import com.openx.view.AdInterstitial;
AdInterstitial adInterstitial;
Button btnShowInterstitial;
@Override
public void onAdFailedToLoad(AdError e) {
@Override
public void onAdDidLoad() {
btnShowInterstitial.setEnabled(true);
btnShowInterstitial.setText("Show Interstitial");
btnShowInterstitial.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
adInterstitial.show();
}
});
@Override
public void onAdClosed() {
btnShowInterstitial.setEnabled(false);
/*
* For the purposes of the demo, we reload another Interstitial ad
* and present a button when it's available;
*/
createInterstitialAD();
}
@Override
public void onAdClicked() {
Log.d(TAG, "onAdClicked");
};
@Override
protected void onCreate(Bundle savedInstanceState) {