MBBD Trace v1.0版本的 MD5 值为:f0273367d111799d70c685af03877187
以下内容为反编译后的 MainActivity.java 源代码,内容仅作参考
package com.bipul.trace;
import android.app.AlertDialog;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.res.ColorStateList;
import android.graphics.drawable.GradientDrawable;
import android.graphics.drawable.RippleDrawable;
import android.os.Build;
import android.os.Bundle;
import android.util.SparseBooleanArray;
import android.util.TypedValue;
import android.view.View;
import android.view.Window;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.ScrollView;
import android.widget.TextView;
import android.widget.Toast;
import androidx.appcompat.app.AppCompatActivity;
import com.google.firebase.FirebaseApp;
import java.util.ArrayList;
import java.util.Random;
public class MainActivity extends AppCompatActivity {
private SharedPreferences bipul;
private Button button1;
private SharedPreferences datas;
private AlertDialog.Builder dilog;
private SharedPreferences dt;
private Intent i = new Intent();
private ImageView imageview1;
private LinearLayout linear1;
private LinearLayout linear2;
private LinearLayout linear3;
private TextView textview21;
private TextView textview22;
private TextView textview23;
private ScrollView vscroll1;
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(R.layout.main);
initialize(bundle);
FirebaseApp.initializeApp(this);
initializeLogic();
}
private void initialize(Bundle bundle) {
this.linear1 = (LinearLayout) findViewById(R.id.linear1);
this.linear3 = (LinearLayout) findViewById(R.id.linear3);
this.linear2 = (LinearLayout) findViewById(R.id.linear2);
this.imageview1 = (ImageView) findViewById(R.id.imageview1);
this.textview21 = (TextView) findViewById(R.id.textview21);
this.textview22 = (TextView) findViewById(R.id.textview22);
this.vscroll1 = (ScrollView) findViewById(R.id.vscroll1);
this.textview23 = (TextView) findViewById(R.id.textview23);
this.button1 = (Button) findViewById(R.id.button1);
this.dilog = new AlertDialog.Builder(this);
this.dt = getSharedPreferences("dt", 0);
this.bipul = getSharedPreferences("bipul", 0);
this.datas = getSharedPreferences("datas", 0);
this.button1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
MainActivity.this.dt.edit().putString("start", "done").commit();
MainActivity.this.bipul.edit().putString("blood", "jannat").commit();
MainActivity.this.i.setClass(MainActivity.this.getApplicationContext(), HomeActivity.class);
MainActivity.this.startActivity(MainActivity.this.i);
MainActivity.this.datas.edit().putString("category", "jannat").commit();
MainActivity.this.finish();
}
});
}
private void initializeLogic() {
if (Build.VERSION.SDK_INT > 19) {
Window window = getWindow();
window.clearFlags(67108864);
window.addFlags(Integer.MIN_VALUE);
window.setStatusBarColor(-1);
}
getWindow().getDecorView().setSystemUiVisibility(8192);
getWindow().setStatusBarColor(-1);
this.textview23.setText("**MBBD Trace - User Agreement**\n\nWelcome to MBBD Trace! By using our Android app, you agree to adhere to the following terms and conditions:\n\n1. **Data Collection and Usage:**\n - MBBD Trace may access and store your contact information from your device's contacts list in our secure database. This data is utilized solely to improve your experience within the app and will not be shared with any third parties.\n\n2. **Data Security:**\n - We prioritize the security and confidentiality of your data. All contact information collected by MBBD Trace is securely stored and protected against unauthorized access or use.\n\n3. **Prohibited Activities:**\n - You agree not to engage in any form of harassment or disruption towards our users or services. Any violation of this policy may result in appropriate actions being taken against you.\n\n4. **App Features:**\n - MBBD Trace features the MBBD Blood Donor Foundation and provides access to all emergency contact numbers in Bangladesh for your convenience and safety.\n\n5. **User Responsibilities:**\n - You are responsible for maintaining the confidentiality of your account information and for any actions taken using your account.\n\n6. **Updates and Modifications:**\n - MBBD Trace reserves the right to update, modify, or discontinue the app or any features at any time without prior notice.\n\n7. **Disclaimer:**\n - While we strive to provide accurate and up-to-date information, MBBD Trace makes no warranties or representations regarding the accuracy or completeness of the data provided within the app.\n\n8. **Consent:**\n - By continuing to use MBBD Trace, you consent to the collection and usage of your contact information as described in this agreement.\n\n9. **Contact Us:**\n - For any inquiries or concerns regarding this user agreement or our app's practices, please contact us at Amijamai82@gmail.com\n\nBy using MBBD Trace, you acknowledge that you have read, understood, and agreed to comply with this user agreement.");
new GradientDrawable();
int i = (int) getApplicationContext().getResources().getDisplayMetrics().density;
GradientDrawable gradientDrawable = new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, new int[]{-14575885, -14575885});
gradientDrawable.setCornerRadius(i * 10);
this.button1.setElevation(i * 5);
this.button1.setBackground(new RippleDrawable(new ColorStateList(new int[][]{new int[0]}, new int[]{-2039584}), gradientDrawable, null));
this.button1.setClickable(true);
if (!this.dt.getString("start", "").equals("")) {
this.i.setClass(getApplicationContext(), HomeActivity.class);
startActivity(this.i);
finish();
}
}
@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;
}
}