MD5 校验值:dbd2f036a5e296167027b941a6a0b015
Adsalpha.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。
package com.heweltunity.playtimex80; import android.app.Dialog; import android.content.ActivityNotFoundException; import android.content.Intent; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.net.Uri; import android.os.Bundle; import android.os.Handler; import android.util.Log; import android.view.View; import androidx.appcompat.app.AppCompatActivity; import androidx.core.view.InputDeviceCompat; import com.unity3d.ads.IUnityAdsInitializationListener; import com.unity3d.ads.UnityAds; public class Adsalpha extends AppCompatActivity { private static final String TAG = "UnityTest"; private String btn = ""; private Dialog dialog; @Override public void onCreate(Bundle bundle) { super.onCreate(bundle); setContentView(R.layout.bealpha1); UnityAds.initialize(this, "5309795", false, new IUnityAdsInitializationListener() { @Override public void onInitializationComplete() { Log.d(Adsalpha.TAG, "onInitializationComplete: "); } @Override public void onInitializationFailed(UnityAds.UnityAdsInitializationError unityAdsInitializationError, String str) { Log.d(Adsalpha.TAG, "onInitializationFailed: " + str); } }); getWindow().setFlags(1024, 1024); getWindow().getDecorView().setSystemUiVisibility(6); getWindow().getDecorView().setSystemUiVisibility(InputDeviceCompat.SOURCE_TOUCHSCREEN); checkNetworkConnectionStatus(); showLoadingDialogue(); loadAd(); findViewById(R.id.logout1).setOnClickListener(new View.OnClickListener() { @Override public final void onClick(View view) { Adsalpha.this.m97lambda$onCreate$0$comheweltunityplaytimex80Adsalpha(view); } }); findViewById(R.id.rate).setOnClickListener(new View.OnClickListener() { @Override public final void onClick(View view) { Adsalpha.this.m98lambda$onCreate$1$comheweltunityplaytimex80Adsalpha(view); } }); findViewById(R.id.button1).setOnClickListener(new View.OnClickListener() { @Override public final void onClick(View view) { Adsalpha.this.m99lambda$onCreate$2$comheweltunityplaytimex80Adsalpha(view); } }); } public void m97lambda$onCreate$0$comheweltunityplaytimex80Adsalpha(View view) { Intent intent = new Intent("android.intent.action.MAIN"); intent.addCategory("android.intent.category.HOME"); intent.setFlags(67108864); startActivity(intent); finish(); } public void m98lambda$onCreate$1$comheweltunityplaytimex80Adsalpha(View view) { ratetheapp(); } public void m99lambda$onCreate$2$comheweltunityplaytimex80Adsalpha(View view) { this.btn = "button1"; checkNetworkConnectionStatus(); directnext(); } private void loadAd() { new Handler().postDelayed(new Runnable() { @Override public final void run() { Adsalpha.this.m96lambda$loadAd$3$comheweltunityplaytimex80Adsalpha(); } }, 2000L); } public void m96lambda$loadAd$3$comheweltunityplaytimex80Adsalpha() { Dialog dialog = this.dialog; if (dialog != null) { dialog.cancel(); } } private void showLoadingDialogue() { Dialog dialog = new Dialog(this, android.R.style.Theme.Black.NoTitleBar.Fullscreen); this.dialog = dialog; dialog.setContentView(R.layout.bealpha5); this.dialog.setCancelable(false); this.dialog.getWindow().getDecorView().setSystemUiVisibility(InputDeviceCompat.SOURCE_TOUCHSCREEN); this.dialog.show(); } private void directnext() { showLoadingDialogue(); new Handler().postDelayed(new Runnable() { @Override public final void run() { Adsalpha.this.m95lambda$directnext$4$comheweltunityplaytimex80Adsalpha(); } }, 1300L); } public void m95lambda$directnext$4$comheweltunityplaytimex80Adsalpha() { this.dialog.cancel(); if (this.btn.equals("button1")) { startActivity(new Intent(getApplicationContext(), (Class<?>) Javaalpha3.class)); } } private void ratetheapp() { try { startActivity(new Intent("android.intent.action.VIEW", Uri.parse("market://details?id=" + getPackageName()))); } catch (ActivityNotFoundException unused) { startActivity(new Intent("android.intent.action.VIEW", Uri.parse("http://play.google.com/store/apps/details?id=" + getPackageName()))); } } public void checkNetworkConnectionStatus() { NetworkInfo activeNetworkInfo = ((ConnectivityManager) getSystemService("connectivity")).getActiveNetworkInfo(); if (activeNetworkInfo == null || !activeNetworkInfo.isConnected()) { startActivity(new Intent(getApplicationContext(), (Class<?>) Javaalpha6.class)); } } }