和通讯录 v3.9.6版本的 MD5 值为:669178e2ee1b2311daf378bd20c6bbe1
以下内容为反编译后的 NumSvcActivity.java 源代码,内容仅作参考
package com.aspire.yellowpage.main;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.text.TextUtils;
import android.widget.LinearLayout;
import android.widget.ListAdapter;
import android.widget.ListView;
import android.widget.TextView;
import com.chinamobile.contacts.im.data.MediaPlatformDBManager;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
public class NumSvcActivity extends Activity {
private LinearLayout f794a;
private ListView f795b;
private TextView c;
private com.aspire.yellowpage.a.d e;
private ArrayList<com.aspire.yellowpage.e.b> f;
private Intent h;
private String i;
private String j;
private String d = "返回";
private ArrayList<com.aspire.yellowpage.e.i> g = new ArrayList<>();
private String k = "http://pim.10086.cn/wap/plugs/yellow.php?type=changyong&pageId=";
private ProgressDialog l = null;
private Handler m = new cd(this);
@Override
protected void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(cn.asp_yp_numsvc_common_layout);
a();
b();
com.aspire.yellowpage.i.a.a("secondpage", this.i, this.j, null);
}
private void a() {
Intent intent = getIntent();
this.d = intent.getStringExtra(MediaPlatformDBManager.KEY_TITLE);
this.j = intent.getExtras().getString("lastPage");
this.i = intent.getExtras().getString("catalogId");
a.f806a.execute(new ce(this));
}
private void b() {
c();
this.l.show();
this.c = (TextView) findViewById(cm.tv_title);
this.c.setText(this.d);
this.f794a = (LinearLayout) findViewById(cm.layout_back);
this.f794a.setOnClickListener(new cf(this));
this.f795b = (ListView) findViewById(cm.lv_num_svc);
this.e = new com.aspire.yellowpage.a.d(this, this.g);
this.f795b.setAdapter((ListAdapter) this.e);
this.f795b.setOnItemClickListener(new cg(this));
}
@Override
public void finish() {
super.finish();
overridePendingTransition(cj.asp_yp_activity_finish_in, cj.asp_yp_activity_finish_out);
}
@Override
protected void onStop() {
if (this.l != null && this.l.isShowing()) {
this.l.dismiss();
}
super.onStop();
}
@Override
public void startActivity(Intent intent) {
super.startActivity(intent);
overridePendingTransition(cj.asp_yp_activity_start_in, cj.asp_yp_activity_start_out);
}
public ArrayList<com.aspire.yellowpage.e.i> a(String str) {
ArrayList arrayList = new ArrayList();
ArrayList<com.aspire.yellowpage.e.h> c = com.aspire.yellowpage.d.g.a(this).c(str);
this.f = com.aspire.yellowpage.d.b.a(a.b()).b(str);
if (c != null && !c.isEmpty()) {
ArrayList<String> c2 = c(str);
if (c2 != null && c2.size() > 0) {
for (int i = 0; i < c2.size(); i++) {
String str2 = c2.get(i);
int i2 = 0;
while (true) {
if (i2 < c.size() && i < c.size()) {
com.aspire.yellowpage.e.h hVar = c.get(i2);
if (!str2.endsWith(hVar.e())) {
i2++;
} else {
c.set(i2, c.get(i));
c.set(i, hVar);
break;
}
}
}
}
}
for (int i3 = 0; i3 < c.size(); i3++) {
com.aspire.yellowpage.e.h hVar2 = c.get(i3);
com.aspire.yellowpage.e.i iVar = new com.aspire.yellowpage.e.i();
iVar.a(hVar2);
iVar.a(0);
arrayList.add(iVar);
}
}
if (this.f != null && this.f.size() > 0) {
for (int i4 = 0; i4 < this.f.size(); i4++) {
String b2 = this.f.get(i4).b();
ArrayList<com.aspire.yellowpage.e.e> a2 = com.aspire.yellowpage.d.e.a(this).a(b2);
if (a2 != null && a2.size() > 0) {
ArrayList<String> b3 = b(b2);
if (b3 != null && b3.size() > 0) {
for (int i5 = 0; i5 < b3.size(); i5++) {
String str3 = b3.get(i5);
int i6 = 0;
while (true) {
if (i6 < a2.size() && i5 < a2.size()) {
com.aspire.yellowpage.e.e eVar = a2.get(i6);
if (!str3.endsWith(eVar.g())) {
i6++;
} else {
a2.set(i6, a2.get(i5));
a2.set(i5, eVar);
break;
}
}
}
}
}
com.aspire.yellowpage.e.i iVar2 = new com.aspire.yellowpage.e.i();
iVar2.a(2);
iVar2.a(this.f.get(i4).d());
arrayList.add(iVar2);
for (int i7 = 0; i7 < a2.size(); i7++) {
com.aspire.yellowpage.e.e eVar2 = a2.get(i7);
com.aspire.yellowpage.e.i iVar3 = new com.aspire.yellowpage.e.i();
iVar3.a(eVar2);
iVar3.a(1);
arrayList.add(iVar3);
}
}
}
} else {
com.aspire.yellowpage.e.i iVar4 = new com.aspire.yellowpage.e.i();
iVar4.a(2);
iVar4.a("常用号码");
arrayList.add(iVar4);
ArrayList<com.aspire.yellowpage.e.e> a3 = com.aspire.yellowpage.d.e.a(this).a(str);
if (a3 != null && a3.size() > 0) {
for (int i8 = 0; i8 < a3.size(); i8++) {
com.aspire.yellowpage.e.e eVar3 = a3.get(i8);
com.aspire.yellowpage.e.i iVar5 = new com.aspire.yellowpage.e.i();
iVar5.a(eVar3);
iVar5.a(1);
arrayList.add(iVar5);
}
}
}
this.g.clear();
this.g.addAll(arrayList);
return this.g;
}
private ArrayList<String> b(String str) {
String d = d("asp_yp_numbers.txt");
if (TextUtils.isEmpty(d)) {
return null;
}
return new com.aspire.yellowpage.g.a().a(d, str);
}
private ArrayList<String> c(String str) {
String d = d("asp_yp_index.txt");
if (TextUtils.isEmpty(d)) {
return null;
}
return new com.aspire.yellowpage.g.a().b(d, str);
}
private String d(String str) {
new StringBuilder("");
String a2 = com.aspire.yellowpage.d.a.a(this).a(str);
if (a2 == null || "".equals(a2)) {
return e(str);
}
return a2;
}
private String e(String str) {
StringBuilder sb = new StringBuilder("");
try {
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(getResources().getAssets().open(str)));
while (true) {
String readLine = bufferedReader.readLine();
if (readLine == null) {
return sb.toString();
}
sb.append(readLine);
}
} catch (Exception e) {
e.printStackTrace();
return null;
}
}
private void c() {
this.l = new ProgressDialog(this);
this.l.setMessage("正在拼命加载...");
this.l.setProgressStyle(0);
}
}