Power Battery v2.0.2版本的 MD5 值为:ca694e0112a4d0aa17ae668e765b51de
以下内容为反编译后的 AboutActivity.java 源代码,内容仅作参考
package com.lionmobi.battery.activity;
import android.app.Activity;
import android.content.Intent;
import android.content.res.TypedArray;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.flurry.android.FlurryAgent;
import com.lionmobi.battery.R;
import com.lionmobi.battery.util.fontutil.FontIconDrawable;
import java.util.Locale;
public class AboutActivity extends BaseActivity implements View.OnClickListener {
private TextView a;
private RelativeLayout b;
private RelativeLayout c;
private RelativeLayout d;
private LinearLayout e;
private hi f = null;
public void goFaceBook() {
try {
startActivity(new Intent("android.intent.action.VIEW", Uri.parse("fb://page/310869285773536")));
} catch (Exception unused) {
startActivity(new Intent("android.intent.action.VIEW", Uri.parse("https://www.facebook.com/lionmobipowerclean")));
}
}
public void gotoPolicy() {
startActivity(new Intent(this, PrivacyPolicyActivity.class));
}
@Override
public void onClick(View view) {
int id = view.getId();
if (id == R.id.about_bottom_share) {
share();
return;
}
switch (id) {
case R.id.share_apk:
ua.sharePowerBatteryByURL(this);
return;
case R.id.privacy_policy:
gotoPolicy();
return;
case R.id.Email_us:
Intent intent = new Intent("android.intent.action.SEND");
intent.putExtra("android.intent.extra.EMAIL", "contact@lionmobi.com");
intent.putExtra("android.intent.extra.SUBJECT", "");
intent.putExtra("android.intent.extra.CC", "contact@lionmobi.com");
intent.putExtra("android.intent.extra.EMAIL", new String[]{"contact@lionmobi.com"});
String str = "";
try {
String deviceModel = ug.getDeviceModel();
String str2 = Build.MANUFACTURER;
String str3 = Build.VERSION.RELEASE;
String totalMemory = ug.getTotalMemory(this);
String screenSize = ug.getScreenSize(this);
String valueOf = String.valueOf(wy.getApkVersion(this));
str = "\n\n\n—————————————————\nFor fixing problem, please keep info below:\nManufacturer: " + str2 + "\nRAM: " + totalMemory + "\nModel: " + deviceModel + "\nResolution: " + screenSize + "\nSystem Language: " + Locale.getDefault().getLanguage() + "\nApp Language: " + vf.getLocalSettingShared(this).getString("lion_language", "DEFAULT") + "\nAndroid Version: " + str3 + "\nPB Version: " + valueOf;
} catch (Exception unused) {
}
intent.putExtra("android.intent.extra.TEXT", str);
intent.setType("message/rfc822");
startActivity(Intent.createChooser(intent, getString(R.string.chose_the_software_to_send_email)));
return;
default:
return;
}
}
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(R.layout.activity_main_about);
this.f = new hi((Activity) this);
vk.setSvg((ImageView) findViewById(R.id.share_img_about), this, R.xml.share_icon, 24.0f);
TypedArray obtainStyledAttributes = getTheme().obtainStyledAttributes(new int[]{R.attr.icon_color});
int color = obtainStyledAttributes.getColor(0, getResources().getColor(R.color.battery_green_light));
obtainStyledAttributes.recycle();
FontIconDrawable inflate = FontIconDrawable.inflate(this, (int) R.xml.back_icon);
inflate.setTextColor(color);
this.f.id(R.id.about_back_imageview).image(inflate);
this.a = (TextView) findViewById(R.id.Version_number);
this.a.setText("2.0.2");
this.b = (RelativeLayout) findViewById(R.id.Email_us);
this.b.setOnClickListener(this);
this.c = (RelativeLayout) findViewById(R.id.share_apk);
this.c.setOnClickListener(this);
this.d = (RelativeLayout) findViewById(R.id.about_bottom_share);
this.d.setOnClickListener(this);
this.d.setVisibility(8);
this.c.setVisibility(8);
findViewById(R.id.privacy_policy).setOnClickListener(this);
this.e = (LinearLayout) findViewById(R.id.about_back);
this.e.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
AboutActivity.this.finish();
}
});
findViewById(R.id.Relat_Google_Play).setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
FlurryAgent.logEvent("GoogleRate(AboutUs)");
zy.build().showRateDialog(AboutActivity.this);
}
});
findViewById(R.id.Relat_Google_Play).setVisibility(8);
findViewById(R.id.facebook_layout).setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
AboutActivity.this.goFaceBook();
}
});
}
public void share() {
Intent intent = new Intent();
intent.setAction("android.intent.action.SEND");
intent.putExtra("android.intent.extra.TEXT", getString(R.string.share_facebook_string));
intent.setType("text/plain");
startActivity(Intent.createChooser(intent, "Share"));
}
}