MD5 校验值:5d19991d3c1c0a41ab5f1348b67e6a2c
WebsitesActivity.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。
package com.sukuna.jod; import android.app.Activity; import android.content.Intent; import android.graphics.Bitmap; import android.os.Bundle; import android.util.SparseBooleanArray; import android.util.TypedValue; import android.view.View; import android.webkit.WebView; import android.webkit.WebViewClient; import android.widget.Button; import android.widget.LinearLayout; import android.widget.ListView; import android.widget.Toast; import java.util.ArrayList; import java.util.Random; public class WebsitesActivity extends Activity { private Button button1; private Intent i = new Intent(); private LinearLayout linear1; private WebView webview1; @Override protected void onCreate(Bundle bundle) { super.onCreate(bundle); setContentView(R.layout.websites); initialize(bundle); initializeLogic(); } private void initialize(Bundle bundle) { this.linear1 = (LinearLayout) findViewById(R.id.linear1); this.webview1 = (WebView) findViewById(R.id.webview1); this.webview1.getSettings().setJavaScriptEnabled(true); this.webview1.getSettings().setSupportZoom(true); this.button1 = (Button) findViewById(R.id.button1); this.webview1.setWebViewClient(new WebViewClient() { @Override public void onPageStarted(WebView webView, String str, Bitmap bitmap) { super.onPageStarted(webView, str, bitmap); } @Override public void onPageFinished(WebView webView, String str) { super.onPageFinished(webView, str); } }); this.button1.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { WebsitesActivity.this.i.setAction("android.intent.action.VIEW"); WebsitesActivity.this.i.setClass(WebsitesActivity.this.getApplicationContext(), DebugActivity.class); WebsitesActivity.this.startActivity(WebsitesActivity.this.i); } }); } private void initializeLogic() { this.webview1.loadUrl("https://www.google.com"); } @Deprecated public void showMessage(String str) { Toast.makeText(getApplicationContext(), str, 0).show(); } @Deprecated public int getLocationX(View view) { int[] iArr = new int[2]; view.getLocationInWindow(iArr); return iArr[0]; } @Deprecated public int getLocationY(View view) { int[] iArr = new int[2]; view.getLocationInWindow(iArr); return iArr[1]; } @Deprecated public int getRandom(int i, int i2) { return new Random().nextInt((i2 - i) + 1) + i; } @Deprecated public ArrayList<Double> getCheckedItemPositionsToArray(ListView listView) { ArrayList<Double> arrayList = new ArrayList<>(); SparseBooleanArray checkedItemPositions = listView.getCheckedItemPositions(); for (int i = 0; i < checkedItemPositions.size(); i++) { if (checkedItemPositions.valueAt(i)) { arrayList.add(Double.valueOf(checkedItemPositions.keyAt(i))); } } return arrayList; } @Deprecated public float getDip(int i) { return TypedValue.applyDimension(1, i, getResources().getDisplayMetrics()); } @Deprecated public int getDisplayWidthPixels() { return getResources().getDisplayMetrics().widthPixels; } @Deprecated public int getDisplayHeightPixels() { return getResources().getDisplayMetrics().heightPixels; } }