换机精灵 v2.5.2版本的 MD5 值为:469dcb6202646d6ec40973ea20c8c14b
以下内容为反编译后的 AboutActivity.java 源代码,内容仅作参考
package com.cx.huanji.ui;
import android.annotation.SuppressLint;
import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.text.ClipboardManager;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.view.animation.LinearInterpolator;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.cx.base.CXActivity;
import com.cx.huanji.R;
import com.umeng.analytics.MobclickAgent;
import com.umeng.update.UmengUpdateAgent;
import com.umeng.update.UmengUpdateListener;
public class AboutActivity extends CXActivity implements View.OnClickListener {
private ImageView e;
private TextView f;
private LinearLayout g;
private LinearLayout h;
private LinearLayout i;
private LinearLayout j;
private LinearLayout k;
private Context l;
private TextView m;
private TextView n;
private TextView o;
private TextView p;
private TextView q;
private TextView r;
private ImageView t;
private Animation u;
private long v;
private String s = null;
int f1945c = Integer.parseInt(Build.VERSION.SDK);
final UmengUpdateListener d = new a(this);
private void a() {
try {
this.s = getPackageManager().getPackageInfo(getPackageName(), 0).versionName;
} catch (PackageManager.NameNotFoundException e) {
e.printStackTrace();
}
if (this.s != null) {
this.n.setText("V" + this.s);
}
}
private void b() {
this.t.setBackgroundResource(R.drawable.update_1);
this.t.startAnimation(this.u);
}
public void c() {
this.t.clearAnimation();
this.t.setBackgroundResource(R.drawable.arrow_right);
}
@Override
@SuppressLint({"NewApi"})
public void onClick(View view) {
Intent intent = new Intent();
com.cx.tools.e.a.c(this.f995a, "getId:" + view.getId());
int id = view.getId();
if (com.cx.base.h.a.a()) {
return;
}
if (id == R.id.qq) {
if (this.f1945c <= 10) {
((ClipboardManager) getSystemService("clipboard")).setText("311534002".trim());
} else {
((android.content.ClipboardManager) getSystemService("clipboard")).setText("311534002".trim());
}
com.cx.module.launcher.e.j.a(this.l, R.string.about_copy);
com.cx.tools.e.e.a("click-event", "type", "about-qq");
return;
}
if (id == R.id.weibo) {
com.cx.tools.e.e.a("click-event", "type", "about-weibo");
try {
startActivity(new Intent("android.intent.action.VIEW", Uri.parse("http://weibo.com/u/2625935845")));
return;
} catch (Exception e) {
return;
}
}
if (id == R.id.back_btn_goback) {
finish();
return;
}
if (id == R.id.ly_about_click_score) {
if (!com.cx.tools.i.e.b(this.l)) {
com.cx.module.launcher.e.j.a(this.l, this.l.getResources().getString(R.string.net_error_no));
return;
}
try {
startActivity(new Intent("android.intent.action.VIEW", Uri.parse("market://details?id=" + this.l.getPackageName())));
} catch (ActivityNotFoundException e2) {
com.cx.module.launcher.e.j.a(this.l, R.string.about_shichang);
}
com.cx.tools.e.e.a("click-event", "type", "about-score");
MobclickAgent.onEvent(this.l, "click_score");
return;
}
if (id == R.id.ly_about_click_common_problems) {
intent.setClass(this.l, FAQActivity.class);
this.l.startActivity(intent);
com.cx.tools.e.e.a("click-event", "type", "about-problems");
MobclickAgent.onEvent(this.l, "click_qa");
return;
}
if (id == R.id.ly_about_click_feedback) {
intent.setClass(this.l, FeedBackActivity.class);
this.l.startActivity(intent);
com.cx.tools.e.e.a("click-event", "type", "about-feedback");
MobclickAgent.onEvent(this.l, "click_feedback");
return;
}
if (id == R.id.ly_about_click_check_update) {
if (System.currentTimeMillis() - this.v >= 2000) {
this.v = System.currentTimeMillis();
b();
UmengUpdateAgent.forceUpdate(this.l);
UmengUpdateAgent.setUpdateListener(this.d);
com.cx.tools.e.e.a("click-event", "type", "about-checkupdate");
MobclickAgent.onEvent(this.l, "click_about");
return;
}
return;
}
if (id == R.id.weixin_service_no) {
if (this.f1945c <= 10) {
((ClipboardManager) getSystemService("clipboard")).setText("CX-HJJL".trim());
} else {
((android.content.ClipboardManager) getSystemService("clipboard")).setText("CX-HJJL".trim());
}
com.cx.module.launcher.e.j.a(this.l, R.string.about_copy_weixin);
com.cx.tools.e.e.a("click-event", "type", "about-weixin-ser-number");
return;
}
if (id == R.id.weixin_subscribe_no) {
if (this.f1945c <= 10) {
((ClipboardManager) getSystemService("clipboard")).setText("HJJLDY".trim());
} else {
((android.content.ClipboardManager) getSystemService("clipboard")).setText("HJJLDY".trim());
}
com.cx.module.launcher.e.j.a(this.l, R.string.about_copy_weixin);
com.cx.tools.e.e.a("click-event", "type", "about-weixin-sub-number");
}
}
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(R.layout.layout_about);
this.l = this;
this.e = (ImageView) findViewById(R.id.back_btn_goback);
this.e.setVisibility(0);
this.e.setOnClickListener(this);
this.f = (TextView) findViewById(R.id.head_title_txt);
this.f.setText(R.string.about_text_title);
this.g = (LinearLayout) findViewById(R.id.ly_about_click_score);
this.h = (LinearLayout) findViewById(R.id.ly_about_click_common_problems);
this.i = (LinearLayout) findViewById(R.id.ly_about_click_feedback);
this.j = (LinearLayout) findViewById(R.id.ly_about_click_check_update);
this.m = (TextView) findViewById(R.id.tv_yihu_name);
this.n = (TextView) findViewById(R.id.tv_yihu_version);
this.t = (ImageView) findViewById(R.id.update);
this.k = (LinearLayout) findViewById(R.id.weibo_view);
this.o = (TextView) findViewById(R.id.qq);
this.p = (TextView) findViewById(R.id.weibo);
this.q = (TextView) findViewById(R.id.weixin_service_no);
this.r = (TextView) findViewById(R.id.weixin_subscribe_no);
this.o.setText("311534002");
this.p.setText(R.string.about_weibo_name);
this.q.setText(R.string.about_weixin_name);
this.r.setText(R.string.about_weixin_subscribe_name);
int a2 = com.cx.huanji.h.j.a(this.l);
if (a2 == 0 || a2 == 1) {
this.k.setVisibility(0);
} else {
this.k.setVisibility(8);
}
this.u = AnimationUtils.loadAnimation(this, R.anim.disvover_rotate);
this.u.setInterpolator(new LinearInterpolator());
this.o.setOnClickListener(this);
this.p.setOnClickListener(this);
this.q.setOnClickListener(this);
this.r.setOnClickListener(this);
this.g.setOnClickListener(this);
this.h.setOnClickListener(this);
this.i.setOnClickListener(this);
this.j.setOnClickListener(this);
a();
}
}