MD5 校验值:742beb80188760364407d345d0f0fa29
Saeed6Activity.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。
package com.saeed.abdallah; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.graphics.Color; import android.graphics.Typeface; import android.graphics.drawable.GradientDrawable; import android.net.Uri; import android.os.Bundle; import android.os.Environment; import android.util.SparseBooleanArray; import android.util.TypedValue; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import android.widget.EditText; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.ListView; import android.widget.ProgressBar; import android.widget.ScrollView; import android.widget.TextView; import android.widget.Toast; import androidx.appcompat.app.ActionBarDrawerToggle; import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.widget.Toolbar; import androidx.coordinatorlayout.widget.CoordinatorLayout; import androidx.core.app.ActivityCompat; import androidx.core.content.ContextCompat; import androidx.core.view.GravityCompat; import androidx.drawerlayout.widget.DrawerLayout; import com.google.android.gms.tasks.OnCompleteListener; import com.google.android.gms.tasks.OnFailureListener; import com.google.android.gms.tasks.OnSuccessListener; import com.google.android.gms.tasks.Task; import com.google.android.material.appbar.AppBarLayout; import com.google.firebase.FirebaseApp; import com.google.firebase.storage.FileDownloadTask; import com.google.firebase.storage.FirebaseStorage; import com.google.firebase.storage.OnProgressListener; import com.google.firebase.storage.StorageReference; import com.google.firebase.storage.UploadTask; import de.hdodenhof.circleimageview.CircleImageView; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.util.ArrayList; import java.util.Random; public class Saeed6Activity extends AppCompatActivity { private AlertDialog.Builder Check_Update11; private AlertDialog.Builder Check_Update12; private AppBarLayout _app_bar; private CoordinatorLayout _coordinator; private OnSuccessListener _download_delete_success_listener; private OnProgressListener _download_download_progress_listener; private OnSuccessListener<FileDownloadTask.TaskSnapshot> _download_download_success_listener; private OnFailureListener _download_failure_listener; private OnProgressListener _download_upload_progress_listener; private OnCompleteListener<Uri> _download_upload_success_listener; private DrawerLayout _drawer; private ImageView _drawer_About010; private TextView _drawer_About10; private ImageView _drawer_Check_Update010; private TextView _drawer_Check_Update10; private TextView _drawer_Share; private ImageView _drawer_Share01; private CircleImageView _drawer_circleimageview2; private TextView _drawer_contact10; private ImageView _drawer_imageview1; private TextView _drawer_information_for_me10; private LinearLayout _drawer_linear1; private LinearLayout _drawer_linear10; private LinearLayout _drawer_linear11; private LinearLayout _drawer_linear13; private LinearLayout _drawer_linear15; private LinearLayout _drawer_linear16; private LinearLayout _drawer_linear2; private LinearLayout _drawer_linear21; private LinearLayout _drawer_linear7; private ProgressBar _drawer_progressbar1; private ProgressBar _drawer_progressbar2; private ProgressBar _drawer_progressbar3; private ProgressBar _drawer_progressbar4; private ScrollView _drawer_vscroll1; private Toolbar _toolbar; private AlertDialog.Builder about11; private AlertDialog.Builder about12; private Button button1; private LinearLayout linear1; private LinearLayout linear3; private LinearLayout linear4; private TextView textview1; private FirebaseStorage _firebase_storage = FirebaseStorage.getInstance(); private String SA = ""; private String FONT = ""; private String Path_download = ""; private String Download = ""; private Intent s = new Intent(); private Intent Telegram11 = new Intent(); private Intent Telegram12 = new Intent(); private Intent i = new Intent(); private StorageReference download = this._firebase_storage.getReference("storage"); @Override public void onCreate(Bundle bundle) { super.onCreate(bundle); setContentView(R.layout.saeed6); initialize(bundle); FirebaseApp.initializeApp(this); if (ContextCompat.checkSelfPermission(this, "android.permission.READ_EXTERNAL_STORAGE") == -1 || ContextCompat.checkSelfPermission(this, "android.permission.WRITE_EXTERNAL_STORAGE") == -1) { ActivityCompat.requestPermissions(this, new String[]{"android.permission.READ_EXTERNAL_STORAGE", "android.permission.WRITE_EXTERNAL_STORAGE"}, 1000); } else { initializeLogic(); } } @Override public void onRequestPermissionsResult(int i, String[] strArr, int[] iArr) { super.onRequestPermissionsResult(i, strArr, iArr); if (i == 1000) { initializeLogic(); } } private void initialize(Bundle bundle) { this._app_bar = (AppBarLayout) findViewById(R.id._app_bar); this._coordinator = (CoordinatorLayout) findViewById(R.id._coordinator); this._toolbar = (Toolbar) findViewById(R.id._toolbar); setSupportActionBar(this._toolbar); getSupportActionBar().setDisplayHomeAsUpEnabled(true); getSupportActionBar().setHomeButtonEnabled(true); this._toolbar.setNavigationOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Saeed6Activity.this.onBackPressed(); } }); this._drawer = (DrawerLayout) findViewById(R.id._drawer); ActionBarDrawerToggle actionBarDrawerToggle = new ActionBarDrawerToggle(this, this._drawer, this._toolbar, R.string.app_name, R.string.app_name); this._drawer.addDrawerListener(actionBarDrawerToggle); actionBarDrawerToggle.syncState(); LinearLayout linearLayout = (LinearLayout) findViewById(R.id._nav_view); this.linear1 = (LinearLayout) findViewById(R.id.linear1); this.button1 = (Button) findViewById(R.id.button1); this.linear4 = (LinearLayout) findViewById(R.id.linear4); this.linear3 = (LinearLayout) findViewById(R.id.linear3); this.textview1 = (TextView) findViewById(R.id.textview1); this._drawer_linear1 = (LinearLayout) linearLayout.findViewById(R.id.linear1); this._drawer_vscroll1 = (ScrollView) linearLayout.findViewById(R.id.vscroll1); this._drawer_linear2 = (LinearLayout) linearLayout.findViewById(R.id.linear2); this._drawer_linear16 = (LinearLayout) linearLayout.findViewById(R.id.linear16); this._drawer_circleimageview2 = (CircleImageView) linearLayout.findViewById(R.id.circleimageview2); this._drawer_linear7 = (LinearLayout) linearLayout.findViewById(R.id.linear7); this._drawer_linear10 = (LinearLayout) linearLayout.findViewById(R.id.linear10); this._drawer_progressbar1 = (ProgressBar) linearLayout.findViewById(R.id.progressbar1); this._drawer_linear11 = (LinearLayout) linearLayout.findViewById(R.id.linear11); this._drawer_progressbar2 = (ProgressBar) linearLayout.findViewById(R.id.progressbar2); this._drawer_linear13 = (LinearLayout) linearLayout.findViewById(R.id.linear13); this._drawer_progressbar3 = (ProgressBar) linearLayout.findViewById(R.id.progressbar3); this._drawer_linear15 = (LinearLayout) linearLayout.findViewById(R.id.linear15); this._drawer_progressbar4 = (ProgressBar) linearLayout.findViewById(R.id.progressbar4); this._drawer_linear21 = (LinearLayout) linearLayout.findViewById(R.id.linear21); this._drawer_imageview1 = (ImageView) linearLayout.findViewById(R.id.imageview1); this._drawer_contact10 = (TextView) linearLayout.findViewById(R.id.contact10); this._drawer_information_for_me10 = (TextView) linearLayout.findViewById(R.id.information_for_me10); this._drawer_About010 = (ImageView) linearLayout.findViewById(R.id.About010); this._drawer_About10 = (TextView) linearLayout.findViewById(R.id.About10); this._drawer_Check_Update010 = (ImageView) linearLayout.findViewById(R.id.Check_Update010); this._drawer_Check_Update10 = (TextView) linearLayout.findViewById(R.id.Check_Update10); this._drawer_Share01 = (ImageView) linearLayout.findViewById(R.id.Share01); this._drawer_Share = (TextView) linearLayout.findViewById(R.id.Share); this.about11 = new AlertDialog.Builder(this); this.about12 = new AlertDialog.Builder(this); this.Check_Update11 = new AlertDialog.Builder(this); this.Check_Update12 = new AlertDialog.Builder(this); this.button1.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Saeed6Activity.this.Path_download = Uri.parse(Uri.parse("https://firebasestorage.googleapis.com/v0/b/saeed-abdallah-0.appspot.com/o/Pdf%2F%D8%A7%D8%A8%D9%82%20%D9%82%D9%88%D9%8A%D8%A7%D9%8B%20%F0%9F%92%AA%F0%9F%92%99.pdf?alt=media&token=3c00412b-4939-44d9-a86a-577874a7c96c").getLastPathSegment()).getLastPathSegment(); Saeed6Activity.this.Download = FileUtil.getPublicDir(Environment.DIRECTORY_DOWNLOADS).concat("/".concat(Saeed6Activity.this.Path_download)); Saeed6Activity.this._firebase_storage.getReferenceFromUrl("https://firebasestorage.googleapis.com/v0/b/saeed-abdallah-0.appspot.com/o/Pdf%2F%D8%A7%D8%A8%D9%82%20%D9%82%D9%88%D9%8A%D8%A7%D9%8B%20%F0%9F%92%AA%F0%9F%92%99.pdf?alt=media&token=3c00412b-4939-44d9-a86a-577874a7c96c").getFile(new File(Saeed6Activity.this.Download)).addOnSuccessListener(Saeed6Activity.this._download_download_success_listener).addOnFailureListener(Saeed6Activity.this._download_failure_listener).addOnProgressListener(Saeed6Activity.this._download_download_progress_listener); } }); this._download_upload_progress_listener = new OnProgressListener<UploadTask.TaskSnapshot>() { @Override public void onProgress(UploadTask.TaskSnapshot taskSnapshot) { taskSnapshot.getBytesTransferred(); taskSnapshot.getTotalByteCount(); } }; this._download_download_progress_listener = new OnProgressListener<FileDownloadTask.TaskSnapshot>() { @Override public void onProgress(FileDownloadTask.TaskSnapshot taskSnapshot) { Saeed6Activity.this.textview1.setText(String.valueOf((long) ((100.0d * taskSnapshot.getBytesTransferred()) / taskSnapshot.getTotalByteCount())).concat("%")); } }; this._download_upload_success_listener = new OnCompleteListener<Uri>() { @Override public void onComplete(Task<Uri> task) { task.getResult().toString(); } }; this._download_download_success_listener = new OnSuccessListener<FileDownloadTask.TaskSnapshot>() { @Override public void onSuccess(FileDownloadTask.TaskSnapshot taskSnapshot) { taskSnapshot.getTotalByteCount(); Saeed6Activity.this.textview1.setText("Download Successful"); } }; this._download_delete_success_listener = new OnSuccessListener() { @Override public void onSuccess(Object obj) { } }; this._download_failure_listener = new OnFailureListener() { @Override public void onFailure(Exception exc) { exc.getMessage(); } }; this._drawer_imageview1.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Saeed6Activity.this.i.setClass(Saeed6Activity.this.getApplicationContext(), ContactActivity.class); Saeed6Activity.this.startActivity(Saeed6Activity.this.i); } }); this._drawer_contact10.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Saeed6Activity.this.i.setClass(Saeed6Activity.this.getApplicationContext(), ContactActivity.class); Saeed6Activity.this.startActivity(Saeed6Activity.this.i); } }); this._drawer_information_for_me10.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Saeed6Activity.this.s.setClass(Saeed6Activity.this.getApplicationContext(), AboutActivity.class); Saeed6Activity.this.startActivity(Saeed6Activity.this.s); } }); this._drawer_About010.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Saeed6Activity.this.about12.setTitle("* 𝐀𝐛𝐨𝐮𝐭 *"); Saeed6Activity.this.about12.setMessage("هذا الإصدار يحتوي علي محاضرات :\n- \n\nLast Modified : 10/10/2024"); Saeed6Activity.this.about12.setPositiveButton("𝐎𝐊", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialogInterface, int i) { } }); Saeed6Activity.this.about12.setNegativeButton("𝐂𝐚𝐧𝐜𝐞𝐥", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialogInterface, int i) { } }); Saeed6Activity.this.about12.create().show(); } }); this._drawer_About10.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Saeed6Activity.this.about11.setTitle("* 𝐀𝐛𝐨𝐮𝐭 *"); Saeed6Activity.this.about11.setMessage("هذا الإصدار يحتوي علي محاضرات :\n- \n\nLast Modified : 10/10/2024"); Saeed6Activity.this.about11.setPositiveButton("𝐎𝐊", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialogInterface, int i) { } }); Saeed6Activity.this.about11.setNegativeButton("𝐂𝐚𝐧𝐜𝐞𝐥", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialogInterface, int i) { } }); Saeed6Activity.this.about11.create().show(); } }); this._drawer_Check_Update010.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Saeed6Activity.this.Check_Update12.setTitle("𝐂𝐡𝐞𝐜𝐤 𝐔𝐩𝐝𝐚𝐭𝐞"); Saeed6Activity.this.Check_Update12.setMessage("تابع أحدث إصدار من التطبيق ، للحصول علي المحاضرات\n\nlast Modified: 10/10/2024\nlast Version: 3.0"); Saeed6Activity.this.Check_Update12.setNegativeButton("𝐂𝐚𝐧𝐜𝐞𝐥", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialogInterface, int i) { } }); Saeed6Activity.this.Check_Update12.setPositiveButton("𝐉𝐨𝐢𝐧 𝐓𝐞𝐥𝐞𝐠𝐫𝐚𝐦", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialogInterface, int i) { Saeed6Activity.this.Telegram12.setAction("android.intent.action.VIEW"); Saeed6Activity.this.Telegram12.setData(Uri.parse("https://t.me/+F0Pc0uF72CMzYTRk")); Saeed6Activity.this.startActivity(Saeed6Activity.this.Telegram12); } }); Saeed6Activity.this.Check_Update12.create().show(); } }); this._drawer_Check_Update10.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Saeed6Activity.this.Check_Update11.setTitle("𝐂𝐡𝐞𝐜𝐤 𝐔𝐩𝐝𝐚𝐭𝐞"); Saeed6Activity.this.Check_Update11.setMessage("تابع أحدث إصدار من التطبيق ، للحصول علي المحاضرات\n\nlast Modified: 10/10/2024\nlast Version: 3.0"); Saeed6Activity.this.Check_Update11.setNegativeButton("𝐂𝐚𝐧𝐜𝐞𝐥", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialogInterface, int i) { } }); Saeed6Activity.this.Check_Update11.setPositiveButton("𝐉𝐨𝐢𝐧 𝐓𝐞𝐥𝐞𝐠𝐫𝐚𝐦", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialogInterface, int i) { Saeed6Activity.this.Telegram11.setAction("android.intent.action.VIEW"); Saeed6Activity.this.Telegram11.setData(Uri.parse("https://t.me/+F0Pc0uF72CMzYTRk")); Saeed6Activity.this.startActivity(Saeed6Activity.this.Telegram11); } }); Saeed6Activity.this.Check_Update11.create().show(); } }); this._drawer_Share01.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { } }); this._drawer_Share.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { } }); } private void initializeLogic() { setTitle("نصوص في خدمة الفرد باللغة الإنجليزية"); _activityfont_otf("arabic1"); GradientDrawable gradientDrawable = new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, new int[]{Color.parseColor("#3F576B"), Color.parseColor("#3F576B")}); gradientDrawable.setCornerRadii(new float[]{360.0f, 360.0f, 360.0f, 360.0f, 360.0f, 360.0f, 360.0f, 360.0f}); gradientDrawable.setStroke(0, Color.parseColor("#000000")); this.button1.setElevation(0.0f); this.button1.setBackground(gradientDrawable); } @Override public void onBackPressed() { if (this._drawer.isDrawerOpen(GravityCompat.START)) { this._drawer.closeDrawer(GravityCompat.START); } else { super.onBackPressed(); } } public void _share() { } private void shareApplication() { String str = getApplicationContext().getApplicationInfo().sourceDir; Intent intent = new Intent("android.intent.action.SEND"); intent.setType("*/*"); File file = new File(str); try { File file2 = new File(getExternalCacheDir() + "/ExtractedApk"); if (file2.isDirectory() || file2.mkdirs()) { File file3 = new File(String.valueOf(file2.getPath()) + "/𝐒𝐀 .apk"); if (!file3.exists()) { try { if (!file3.createNewFile()) { return; } } catch (IOException e) { } } FileInputStream fileInputStream = new FileInputStream(file); FileOutputStream fileOutputStream = new FileOutputStream(file3); byte[] bArr = new byte[1024]; while (true) { int read = fileInputStream.read(bArr); if (read > 0) { fileOutputStream.write(bArr, 0, read); } else { fileInputStream.close(); fileOutputStream.close(); intent.putExtra("android.intent.extra.STREAM", Uri.fromFile(file3)); startActivity(Intent.createChooser(intent, "مشاركة عبر")); return; } } } } catch (IOException e2) { showMessage(e2.toString()); } } public void _activityfont_otf(String str) { this.FONT = "fonts/".concat(str.concat(".ttf")); overrideFonts(this, getWindow().getDecorView()); } private void overrideFonts(Context context, View view) { try { Typeface createFromAsset = Typeface.createFromAsset(getAssets(), this.FONT); if (view instanceof ViewGroup) { ViewGroup viewGroup = (ViewGroup) view; for (int i = 0; i < viewGroup.getChildCount(); i++) { overrideFonts(context, viewGroup.getChildAt(i)); } return; } if (view instanceof TextView) { ((TextView) view).setTypeface(createFromAsset); } else if (view instanceof EditText) { ((EditText) view).setTypeface(createFromAsset); } else if (view instanceof Button) { ((Button) view).setTypeface(createFromAsset); } } catch (Exception e) { showMessage(e.toString()); } } @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; } }