Americanas v1.0版本的 MD5 值为:6a2e3056bcc3046cb95ac9ee4a935d3c
以下内容为反编译后的 HomeActivity.java 源代码,内容仅作参考
package painel.ajuste.game;
import android.app.AlertDialog;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.TaskStackBuilder;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.graphics.drawable.GradientDrawable;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.util.SparseBooleanArray;
import android.util.TypedValue;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.animation.ScaleAnimation;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.PopupMenu;
import android.widget.ScrollView;
import android.widget.Switch;
import android.widget.TextView;
import android.widget.Toast;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.ActivityCompat;
import androidx.core.app.NotificationCompat;
import androidx.core.content.ContextCompat;
import com.cyberalpha.darkIOS.BuildConfig;
import java.util.ArrayList;
import java.util.Random;
public class HomeActivity extends AppCompatActivity {
private AlertDialog.Builder dialog;
private ImageView imageview1;
private ImageView imageview2;
private ImageView imageview3;
private LinearLayout linear1;
private LinearLayout linear10;
private LinearLayout linear11;
private LinearLayout linear12;
private LinearLayout linear13;
private LinearLayout linear14;
private LinearLayout linear15;
private LinearLayout linear16;
private LinearLayout linear17;
private LinearLayout linear18;
private LinearLayout linear19;
private LinearLayout linear2;
private LinearLayout linear20;
private LinearLayout linear33;
private LinearLayout linear34;
private LinearLayout linear35;
private LinearLayout linear36;
private LinearLayout linear37;
private LinearLayout linear38;
private LinearLayout linear39;
private LinearLayout linear4;
private LinearLayout linear40;
private LinearLayout linear41;
private LinearLayout linear42;
private LinearLayout linear5;
private LinearLayout linear6;
private LinearLayout linear9;
private SharedPreferences sp;
private Switch switch1;
private Switch switch10;
private Switch switch11;
private Switch switch2;
private Switch switch3;
private Switch switch4;
private Switch switch9;
private TextView textview1;
private TextView textview18;
private TextView textview19;
private TextView textview2;
private TextView textview20;
private TextView textview21;
private TextView textview22;
private TextView textview23;
private TextView textview24;
private TextView textview3;
private TextView textview4;
private TextView textview5;
private TextView textview6;
private TextView textview7;
private TextView textview8;
private TextView textview9;
private ScrollView vscroll1;
private double on = 0.0d;
private String path = BuildConfig.FLAVOR;
private String path2 = BuildConfig.FLAVOR;
private String path3 = BuildConfig.FLAVOR;
private String main = BuildConfig.FLAVOR;
private String main2 = BuildConfig.FLAVOR;
private String main3 = BuildConfig.FLAVOR;
private String ui = BuildConfig.FLAVOR;
private String ui2 = BuildConfig.FLAVOR;
private String ui3 = BuildConfig.FLAVOR;
private Intent i = new Intent();
private Intent it = new Intent();
private Intent nova = new Intent();
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(R.layout.home);
initialize(bundle);
if (ContextCompat.checkSelfPermission(this, "android.permission.READ_EXTERNAL_STORAGE") != -1 && ContextCompat.checkSelfPermission(this, "android.permission.WRITE_EXTERNAL_STORAGE") != -1) {
initializeLogic();
} else {
ActivityCompat.requestPermissions(this, new String[]{"android.permission.READ_EXTERNAL_STORAGE", "android.permission.WRITE_EXTERNAL_STORAGE"}, 1000);
}
}
@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.linear1 = (LinearLayout) findViewById(R.id.linear1);
this.linear2 = (LinearLayout) findViewById(R.id.linear2);
this.linear4 = (LinearLayout) findViewById(R.id.linear4);
this.imageview3 = (ImageView) findViewById(R.id.imageview3);
this.imageview1 = (ImageView) findViewById(R.id.imageview1);
this.imageview2 = (ImageView) findViewById(R.id.imageview2);
this.vscroll1 = (ScrollView) findViewById(R.id.vscroll1);
this.linear5 = (LinearLayout) findViewById(R.id.linear5);
this.linear6 = (LinearLayout) findViewById(R.id.linear6);
this.linear33 = (LinearLayout) findViewById(R.id.linear33);
this.linear37 = (LinearLayout) findViewById(R.id.linear37);
this.linear40 = (LinearLayout) findViewById(R.id.linear40);
this.linear36 = (LinearLayout) findViewById(R.id.linear36);
this.linear9 = (LinearLayout) findViewById(R.id.linear9);
this.linear12 = (LinearLayout) findViewById(R.id.linear12);
this.linear15 = (LinearLayout) findViewById(R.id.linear15);
this.linear18 = (LinearLayout) findViewById(R.id.linear18);
this.textview1 = (TextView) findViewById(R.id.textview1);
this.linear34 = (LinearLayout) findViewById(R.id.linear34);
this.linear35 = (LinearLayout) findViewById(R.id.linear35);
this.textview18 = (TextView) findViewById(R.id.textview18);
this.switch9 = (Switch) findViewById(R.id.switch9);
this.textview19 = (TextView) findViewById(R.id.textview19);
this.linear38 = (LinearLayout) findViewById(R.id.linear38);
this.linear39 = (LinearLayout) findViewById(R.id.linear39);
this.textview21 = (TextView) findViewById(R.id.textview21);
this.switch10 = (Switch) findViewById(R.id.switch10);
this.textview22 = (TextView) findViewById(R.id.textview22);
this.linear41 = (LinearLayout) findViewById(R.id.linear41);
this.linear42 = (LinearLayout) findViewById(R.id.linear42);
this.textview23 = (TextView) findViewById(R.id.textview23);
this.switch11 = (Switch) findViewById(R.id.switch11);
this.textview24 = (TextView) findViewById(R.id.textview24);
this.textview20 = (TextView) findViewById(R.id.textview20);
this.linear10 = (LinearLayout) findViewById(R.id.linear10);
this.linear11 = (LinearLayout) findViewById(R.id.linear11);
this.textview2 = (TextView) findViewById(R.id.textview2);
this.switch1 = (Switch) findViewById(R.id.switch1);
this.textview3 = (TextView) findViewById(R.id.textview3);
this.linear13 = (LinearLayout) findViewById(R.id.linear13);
this.linear14 = (LinearLayout) findViewById(R.id.linear14);
this.textview4 = (TextView) findViewById(R.id.textview4);
this.switch2 = (Switch) findViewById(R.id.switch2);
this.textview5 = (TextView) findViewById(R.id.textview5);
this.linear16 = (LinearLayout) findViewById(R.id.linear16);
this.linear17 = (LinearLayout) findViewById(R.id.linear17);
this.textview6 = (TextView) findViewById(R.id.textview6);
this.switch3 = (Switch) findViewById(R.id.switch3);
this.textview7 = (TextView) findViewById(R.id.textview7);
this.linear19 = (LinearLayout) findViewById(R.id.linear19);
this.linear20 = (LinearLayout) findViewById(R.id.linear20);
this.textview8 = (TextView) findViewById(R.id.textview8);
this.switch4 = (Switch) findViewById(R.id.switch4);
this.textview9 = (TextView) findViewById(R.id.textview9);
this.dialog = new AlertDialog.Builder(this);
this.sp = getSharedPreferences("sp", 0);
this.imageview3.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
HomeActivity.this._clickanimation(HomeActivity.this.imageview3);
PopupMenu popupMenu = new PopupMenu(HomeActivity.this, HomeActivity.this.imageview3);
Menu menu = popupMenu.getMenu();
menu.add("Função");
menu.add("Ajustes");
menu.add("Bypass");
menu.add("Suporte");
menu.add("Servidor");
menu.add("Solução da Restrição");
popupMenu.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {
@Override
public boolean onMenuItemClick(MenuItem menuItem) {
String charSequence = menuItem.getTitle().toString();
switch (charSequence.hashCode()) {
case -190140734:
if (charSequence.equals("Suporte")) {
HomeActivity.this.nova.setAction("android.intent.action.VIEW");
HomeActivity.this.nova.setData(Uri.parse("https://www.instagram.com/dionesyutuber?igsh=ODA1NTc5OTg5Nw=="));
HomeActivity.this.startActivity(HomeActivity.this.nova);
return true;
}
break;
case 135633175:
if (charSequence.equals("Solução da Restrição")) {
HomeActivity.this.nova.setAction("android.intent.action.VIEW");
HomeActivity.this.nova.setData(Uri.parse("https://www.youtube.com/watch?v=I6j4BRF0FCU&ab_channel=DIIONES"));
HomeActivity.this.startActivity(HomeActivity.this.nova);
return true;
}
break;
case 704479771:
if (charSequence.equals("Ajustes")) {
HomeActivity.this.nova.setClass(HomeActivity.this.getApplicationContext(), AjustesActivity.class);
HomeActivity.this.startActivity(HomeActivity.this.nova);
return true;
}
break;
case 1443854708:
if (charSequence.equals("Servidor")) {
HomeActivity.this.nova.setAction("android.intent.action.VIEW");
HomeActivity.this.nova.setData(Uri.parse("https://discord.com/invite/3fgQPw2R3J"));
HomeActivity.this.startActivity(HomeActivity.this.nova);
return true;
}
break;
case 2004703496:
if (charSequence.equals("Bypass")) {
HomeActivity.this.nova.setClass(HomeActivity.this.getApplicationContext(), BypassActivity.class);
HomeActivity.this.startActivity(HomeActivity.this.nova);
return true;
}
break;
case 2115598676:
if (charSequence.equals("Função")) {
HomeActivity.this.nova.setClass(HomeActivity.this.getApplicationContext(), HomeActivity.class);
HomeActivity.this.startActivity(HomeActivity.this.nova);
return true;
}
break;
}
return false;
}
});
popupMenu.show();
}
});
this.imageview2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
HomeActivity.this._clickanimation(HomeActivity.this.imageview2);
HomeActivity.this._notificacao("Injetor Ativado!");
}
});
this.switch9.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if (!FileUtil.isExistFile(FileUtil.getPackageDataDir(HomeActivity.this.getApplicationContext()).concat("/config/"))) {
FileUtil.makeDir(FileUtil.getPackageDataDir(HomeActivity.this.getApplicationContext()).concat("/config/"));
SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Criada");
HomeActivity.this.path = FileUtil.getPackageDataDir(HomeActivity.this.getApplicationContext()).concat("/config/configv1.txt");
if (!FileUtil.isExistFile(HomeActivity.this.path)) {
FileUtil.writeFile(HomeActivity.this.path, " \"setting regedit armas de 1 tiro = \\\"working \\\"+setting localization = \\\"com.dts.freefireth \\\"+setting value = \\\"650 \\\" if \\\"Regedit Armas de 1 Tiro != null \\\"+start activity configuration (\\\"Regedit Armas de 1 Tiro\\\");\"");
}
HomeActivity.this.path2 = FileUtil.getPackageDataDir(HomeActivity.this.getApplicationContext()).concat("/config/configv2.txt");
if (!FileUtil.isExistFile(HomeActivity.this.path2)) {
FileUtil.writeFile(HomeActivity.this.path2, " \"setting regedit armas de 1 tiro = \\\"working \\\"+setting localization = \\\"com.dts.freefireth \\\"+setting value = \\\"650 \\\" if \\\"Regedit Armas de 1 Tiro != null \\\"+start activity configuration (\\\"Regedit Armas de 1 Tiro\\\");\"");
}
HomeActivity.this.path3 = FileUtil.getPackageDataDir(HomeActivity.this.getApplicationContext()).concat("/config/configv2.txt");
if (!FileUtil.isExistFile(HomeActivity.this.path3)) {
FileUtil.writeFile(HomeActivity.this.path3, " \"setting regedit armas de 1 tiro = \\\"working \\\"+setting localization = \\\"com.dts.freefireth \\\"+setting value = \\\"650 \\\" if \\\"Regedit Armas de 1 Tiro != null \\\"+start activity configuration (\\\"Regedit Armas de 1 Tiro\\\");\"");
}
}
SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Injetado");
}
});
this.switch10.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if (!FileUtil.isExistFile(FileUtil.getPackageDataDir(HomeActivity.this.getApplicationContext()).concat("/main/"))) {
FileUtil.makeDir(FileUtil.getPackageDataDir(HomeActivity.this.getApplicationContext()).concat("/main/"));
SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Criada");
HomeActivity.this.main = FileUtil.getPackageDataDir(HomeActivity.this.getApplicationContext()).concat("/main/mainv1.txt");
if (!FileUtil.isExistFile(HomeActivity.this.main)) {
FileUtil.writeFile(HomeActivity.this.main, " \"setting regedit armas de 1 tiro = \\\"working \\\"+setting localization = \\\"com.dts.freefireth \\\"+setting value = \\\"650 \\\" if \\\"Regedit Armas de 1 Tiro != null \\\"+start activity configuration (\\\"Regedit Armas de 1 Tiro\\\");\"");
}
HomeActivity.this.main2 = FileUtil.getPackageDataDir(HomeActivity.this.getApplicationContext()).concat("/main/mainv2.txt");
if (!FileUtil.isExistFile(HomeActivity.this.main2)) {
FileUtil.writeFile(HomeActivity.this.main2, " \"setting regedit armas de 1 tiro = \\\"working \\\"+setting localization = \\\"com.dts.freefireth \\\"+setting value = \\\"650 \\\" if \\\"Regedit Armas de 1 Tiro != null \\\"+start activity configuration (\\\"Regedit Armas de 1 Tiro\\\");\"");
}
HomeActivity.this.main3 = FileUtil.getPackageDataDir(HomeActivity.this.getApplicationContext()).concat("/main/mainv3.txt");
if (!FileUtil.isExistFile(HomeActivity.this.main3)) {
FileUtil.writeFile(HomeActivity.this.main3, " \"setting regedit armas de 1 tiro = \\\"working \\\"+setting localization = \\\"com.dts.freefireth \\\"+setting value = \\\"650 \\\" if \\\"Regedit Armas de 1 Tiro != null \\\"+start activity configuration (\\\"Regedit Armas de 1 Tiro\\\");\"");
}
}
SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Injetado");
}
});
this.switch11.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if (!FileUtil.isExistFile(FileUtil.getPackageDataDir(HomeActivity.this.getApplicationContext()).concat("/ui/"))) {
FileUtil.makeDir(FileUtil.getPackageDataDir(HomeActivity.this.getApplicationContext()).concat("/ui/"));
SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Criada");
HomeActivity.this.ui = FileUtil.getPackageDataDir(HomeActivity.this.getApplicationContext()).concat("/ui/uiv1.txt");
if (!FileUtil.isExistFile(HomeActivity.this.ui)) {
FileUtil.writeFile(HomeActivity.this.ui, " \"setting regedit armas de 1 tiro = \\\"working \\\"+setting localization = \\\"com.dts.freefireth \\\"+setting value = \\\"650 \\\" if \\\"Regedit Armas de 1 Tiro != null \\\"+start activity configuration (\\\"Regedit Armas de 1 Tiro\\\");\"");
}
HomeActivity.this.ui2 = FileUtil.getPackageDataDir(HomeActivity.this.getApplicationContext()).concat("/ui/uiv2.txt");
if (!FileUtil.isExistFile(HomeActivity.this.ui2)) {
FileUtil.writeFile(HomeActivity.this.ui2, " \"setting regedit armas de 1 tiro = \\\"working \\\"+setting localization = \\\"com.dts.freefireth \\\"+setting value = \\\"650 \\\" if \\\"Regedit Armas de 1 Tiro != null \\\"+start activity configuration (\\\"Regedit Armas de 1 Tiro\\\");\"");
}
HomeActivity.this.ui3 = FileUtil.getPackageDataDir(HomeActivity.this.getApplicationContext()).concat("/ui/uiv3.txt");
if (!FileUtil.isExistFile(HomeActivity.this.ui3)) {
FileUtil.writeFile(HomeActivity.this.ui3, " \"setting regedit armas de 1 tiro = \\\"working \\\"+setting localization = \\\"com.dts.freefireth \\\"+setting value = \\\"650 \\\" if \\\"Regedit Armas de 1 Tiro != null \\\"+start activity configuration (\\\"Regedit Armas de 1 Tiro\\\");\"");
}
}
SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Injetado");
}
});
this.switch1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Injetado");
}
});
this.switch2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Injetado");
}
});
this.switch3.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Injetado");
}
});
}
private void initializeLogic() {
this.linear2.setBackground(new GradientDrawable() {
public GradientDrawable getIns(int i, int i2) {
setCornerRadius(i);
setColor(i2);
return this;
}
}.getIns(20, -769226));
this.linear6.setBackground(new GradientDrawable() {
public GradientDrawable getIns(int i, int i2) {
setCornerRadius(i);
setColor(i2);
return this;
}
}.getIns(20, -769226));
this.linear36.setBackground(new GradientDrawable() {
public GradientDrawable getIns(int i, int i2) {
setCornerRadius(i);
setColor(i2);
return this;
}
}.getIns(20, -769226));
GradientDrawable gradientDrawable = new GradientDrawable();
gradientDrawable.setColor(Color.argb(255, 0, 0, 0));
gradientDrawable.setCornerRadius(30.0f);
gradientDrawable.setStroke(7, Color.argb(255, 255, 0, 84));
this.linear9.setBackground(gradientDrawable);
GradientDrawable gradientDrawable2 = new GradientDrawable();
gradientDrawable2.setColor(Color.argb(255, 0, 0, 0));
gradientDrawable2.setCornerRadius(30.0f);
gradientDrawable2.setStroke(7, Color.argb(255, 255, 0, 84));
this.linear18.setBackground(gradientDrawable2);
GradientDrawable gradientDrawable3 = new GradientDrawable();
gradientDrawable3.setColor(Color.argb(255, 0, 0, 0));
gradientDrawable3.setCornerRadius(30.0f);
gradientDrawable3.setStroke(7, Color.argb(255, 255, 0, 84));
this.linear15.setBackground(gradientDrawable3);
GradientDrawable gradientDrawable4 = new GradientDrawable();
gradientDrawable4.setColor(Color.argb(255, 0, 0, 0));
gradientDrawable4.setCornerRadius(30.0f);
gradientDrawable4.setStroke(7, Color.argb(255, 255, 0, 84));
this.linear12.setBackground(gradientDrawable4);
GradientDrawable gradientDrawable5 = new GradientDrawable();
gradientDrawable5.setColor(Color.argb(255, 0, 0, 0));
gradientDrawable5.setCornerRadius(30.0f);
gradientDrawable5.setStroke(7, Color.argb(255, 255, 0, 84));
this.linear33.setBackground(gradientDrawable5);
GradientDrawable gradientDrawable6 = new GradientDrawable();
gradientDrawable6.setColor(Color.argb(255, 0, 0, 0));
gradientDrawable6.setCornerRadius(30.0f);
gradientDrawable6.setStroke(7, Color.argb(255, 255, 0, 84));
this.linear37.setBackground(gradientDrawable6);
GradientDrawable gradientDrawable7 = new GradientDrawable();
gradientDrawable7.setColor(Color.argb(255, 0, 0, 0));
gradientDrawable7.setCornerRadius(30.0f);
gradientDrawable7.setStroke(7, Color.argb(255, 255, 0, 84));
this.linear40.setBackground(gradientDrawable7);
if (!this.sp.getString("dialog", BuildConfig.FLAVOR).equals("salvo")) {
this.dialog.setIcon(R.drawable.icon);
this.dialog.setTitle("DIONESMASTER");
this.dialog.setMessage("Se Inscreva-se no canal para os códigos estarem funcionando corretamente!");
this.dialog.setPositiveButton("OK", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
HomeActivity.this.sp.edit().putString("dialog", "salvo").commit();
HomeActivity.this.it.setAction("android.intent.action.VIEW");
HomeActivity.this.it.setData(Uri.parse("https://youtube.com/@DionesMaster?si=yrVSRwPCbJ2UKa2S"));
HomeActivity.this.startActivity(HomeActivity.this.it);
}
});
this.dialog.create().show();
}
}
public void _clickanimation(View view) {
ScaleAnimation scaleAnimation = new ScaleAnimation(0.9f, 1.0f, 0.9f, 1.0f, 1, 0.5f, 1, 0.7f);
scaleAnimation.setDuration(300L);
scaleAnimation.setFillAfter(true);
view.startAnimation(scaleAnimation);
}
public void _notificacao(String str) {
Context applicationContext = getApplicationContext();
NotificationManager notificationManager = (NotificationManager) applicationContext.getSystemService("notification");
Intent intent = new Intent(this, MainActivity.class);
intent.setFlags(603979776);
PendingIntent activity = PendingIntent.getActivity(this, 0, intent, 0);
if (Build.VERSION.SDK_INT >= 26) {
notificationManager.createNotificationChannel(new NotificationChannel("channel-01", "Channel Name", 4));
}
NotificationCompat.Builder contentIntent = new NotificationCompat.Builder(applicationContext, "channel-01").setSmallIcon(R.drawable.icon).setContentText(str).setAutoCancel(true).setOngoing(false).setContentIntent(activity);
TaskStackBuilder create = TaskStackBuilder.create(applicationContext);
create.addNextIntent(intent);
contentIntent.setContentIntent(create.getPendingIntent(0, 134217728));
notificationManager.notify(1, contentIntent.build());
}
@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;
}
}