PSP Dragon Emulator v1.0版本的 MD5 值为:c6379fb6b63c27b6a7d2f2f6f6f51637
以下内容为反编译后的 AppaActivity.java 源代码,内容仅作参考
package com.gamedragontoha.pspwaruirengcom;
import android.app.Application;
import android.os.Handler;
import android.support.multidex.MultiDexApplication;
import com.facebook.appevents.AppEventsLogger;
import com.google.android.gms.ads.AdListener;
import com.google.android.gms.ads.AdRequest;
import com.google.android.gms.ads.InterstitialAd;
import com.nostra13.universalimageloader.core.ImageLoader;
import com.nostra13.universalimageloader.core.ImageLoaderConfiguration;
import java.util.ArrayList;
public class AppaActivity extends MultiDexApplication implements Pengaturan {
public static AppaActivity me;
private InterstitialAd mInterstitial;
public ArrayList<ListKonten> menulist = new ArrayList<>();
public Boolean adsWait = false;
public Handler dHandler = new Handler();
public String JSONUrl = "https://dl.dropboxusercontent.com/s/nzmnsy87oujotc3/psp%20waruireng%202.json";
private int waitTime = 30000;
@Override
public void onCreate() {
super.onCreate();
me = this;
AppEventsLogger.activateApp((Application) this);
ImageLoader.getInstance().init(new ImageLoaderConfiguration.Builder(this).build());
this.mInterstitial = new InterstitialAd(getApplicationContext());
this.mInterstitial.setAdUnitId(Pengaturan.KODE_ADMOB_INTERS);
this.mInterstitial.loadAd(new AdRequest.Builder().build());
this.mInterstitial.setAdListener(new AdListener() {
@Override
public void onAdClosed() {
super.onAdClosed();
AppaActivity.this.mInterstitial.loadAd(new AdRequest.Builder().build());
}
@Override
public void onAdLoaded() {
super.onAdLoaded();
}
});
}
public static AppaActivity getInstance() {
return me;
}
public void doWait() {
this.adsWait = true;
this.dHandler.postDelayed(new Runnable() {
@Override
public void run() {
AppaActivity.this.adsWait = false;
}
}, this.waitTime);
}
public void showInterstitial() {
if (!this.mInterstitial.isLoaded() || this.adsWait.booleanValue()) {
return;
}
this.mInterstitial.show();
doWait();
}
}