能力值:
( LV4,RANK:50 )
|
-
-
2 楼
找到了,不知如何修改?
.method public Helper(Lcom/yingsoft/ksbao/Dal/CSTest;Ljava/lang/String;ILjava/lang/String;)V
.locals 8
.parameter "csChapter"
.parameter "m_cptid"
.parameter "vchildPosition"
.parameter "mode"
.prologue
const/4 v6, 0x1
const/4 v7, 0x0
.line 282
const-string v4, "Chapter"
invoke-virtual {p1, p3, v4}, Lcom/yingsoft/ksbao/Dal/CSTest;->getString(ILjava/lang/String;)Ljava/lang/String;
move-result-object v1
.line 283
.local v1, cpttitle:Ljava/lang/String;
sput-object v1, Lcom/yingsoft/ksbao/Activity2/ListOfChapters;->m_cpt:Ljava/lang/String;
.line 284
sget-object v4, Lcom/yingsoft/ksbao/Others/MainTabExpandableListGroupAdapter;->State:Ljava/lang/String;
const-string v5, "100"
invoke-virtual {v4, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v4
if-eqz v4, :cond_1
.line 285
sput v7, Lcom/yingsoft/ksbao/Activity/Global;->clickTime:I
.line 286
const-string v4, ""
sput-object v4, Lcom/yingsoft/ksbao/Activity/Global;->PatternRecognition:Ljava/lang/String;
.line 287
sget v4, Lcom/yingsoft/ksbao/Others/MainTabExpandableListGroupAdapter;->bIsOncePrompt:I
const/4 v5, 0x3
if-ge v4, v5, :cond_0
.line 289
new-instance v0, Landroid/app/AlertDialog$Builder;
sget-object v4, Lcom/yingsoft/ksbao/Others/MainTabExpandableListGroupAdapter;->context:Landroid/app/Activity;
invoke-direct {v0, v4}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V
.line 291
.local v0, builder:Landroid/app/AlertDialog$Builder;
const-string v4, "\u8003\u8bd5\u5b9d\u5178\u63d0\u9192\u60a8"
invoke-virtual {v0, v4}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;
move-result-object v4
sget-object v5, Lcom/yingsoft/ksbao/Others/MainTabExpandableListGroupAdapter;->Message:Ljava/lang/String;
invoke-virtual {v4, v5}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;
move-result-object v4
const-string v5, "\u514d\u8d39\u8bd5\u7528 "
.line 292
new-instance v6, Lcom/yingsoft/ksbao/Others/MainTabExpandableListGroupAdapter$4;
invoke-direct {v6, p0, p2, v1, p4}, Lcom/yingsoft/ksbao/Others/MainTabExpandableListGroupAdapter$4;-><init>(Lcom/yingsoft/ksbao/Others/MainTabExpandableListGroupAdapter;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
.line 291
invoke-virtual {v4, v5, v6}, Landroid/app/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;
move-result-object v4
.line 309
const-string v5, " \u8f6f\u4ef6\u5145\u503c "
.line 310
new-instance v6, Lcom/yingsoft/ksbao/Others/MainTabExpandableListGroupAdapter$5;
invoke-direct {v6, p0}, Lcom/yingsoft/ksbao/Others/MainTabExpandableListGroupAdapter$5;-><init>(Lcom/yingsoft/ksbao/Others/MainTabExpandableListGroupAdapter;)V
.line 309
invoke-virtual {v4, v5, v6}, Landroid/app/AlertDialog$Builder;->setNegativeButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;
move-result-object v4
.line 331
invoke-virtual {v4, v7}, Landroid/app/AlertDialog$Builder;->setCancelable(Z)Landroid/app/AlertDialog$Builder;
move-result-object v4
new-instance v5, Lcom/yingsoft/ksbao/Others/MainTabExpandableListGroupAdapter$6;
invoke-direct {v5, p0}, Lcom/yingsoft/ksbao/Others/MainTabExpandableListGroupAdapter$6;-><init>(Lcom/yingsoft/ksbao/Others/MainTabExpandableListGroupAdapter;)V
invoke-virtual {v4, v5}, Landroid/app/AlertDialog$Builder;->setOnKeyListener(Landroid/content/DialogInterface$OnKeyListener;)Landroid/app/AlertDialog$Builder;
move-result-object v4
.line 349
invoke-virtual {v4}, Landroid/app/AlertDialog$Builder;->show()Landroid/app/AlertDialog;
.line 350
sget v4, Lcom/yingsoft/ksbao/Others/MainTabExpandableListGroupAdapter;->bIsOncePrompt:I
add-int/lit8 v4, v4, 0x1
sput v4, Lcom/yingsoft/ksbao/Others/MainTabExpandableListGroupAdapter;->bIsOncePrompt:I
.line 367
.end local v0 #builder:Landroid/app/AlertDialog$Builder;
:goto_0
return-void
.line 352
:cond_0
invoke-static {}, Lcom/yingsoft/ksbao/Utilitys/Session;->getSession()Lcom/yingsoft/ksbao/Utilitys/Session;
move-result-object v3
.line 353
.local v3, session:Lcom/yingsoft/ksbao/Utilitys/Session;
const-string v4, "dbcur"
iget-object v5, p0, Lcom/yingsoft/ksbao/Others/MainTabExpandableListGroupAdapter;->csDbCur:Lcom/yingsoft/ksbao/Dal/CSTest;
invoke-virtual {v3, v4, v5}, Lcom/yingsoft/ksbao/Utilitys/Session;->put(Ljava/lang/Object;Ljava/lang/Object;)V
.line 354
new-instance v2, Landroid/content/Intent;
sget-object v4, Lcom/yingsoft/ksbao/Others/MainTabExpandableListGroupAdapter;->context:Landroid/app/Activity;
const-class v5, Lcom/yingsoft/ksbao/Activity2/testactivity;
invoke-direct {v2, v4, v5}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V
.line 355
.local v2, intent:Landroid/content/Intent;
invoke-static {v2, p2, v1, p4}, Lcom/yingsoft/ksbao/Activity/Subject;->putExtra(Landroid/content/Intent;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
.line 356
sget-object v4, Lcom/yingsoft/ksbao/Others/MainTabExpandableListGroupAdapter;->context:Landroid/app/Activity;
invoke-virtual {v4, v2, v6}, Landroid/app/Activity;->startActivityForResult(Landroid/content/Intent;I)V
goto :goto_0
.line 360
.end local v2 #intent:Landroid/content/Intent;
.end local v3 #session:Lcom/yingsoft/ksbao/Utilitys/Session;
:cond_1
invoke-static {}, Lcom/yingsoft/ksbao/Utilitys/Session;->getSession()Lcom/yingsoft/ksbao/Utilitys/Session;
move-result-object v3
.line 361
.restart local v3 #session:Lcom/yingsoft/ksbao/Utilitys/Session;
const-string v4, "dbcur"
iget-object v5, p0, Lcom/yingsoft/ksbao/Others/MainTabExpandableListGroupAdapter;->csDbCur:Lcom/yingsoft/ksbao/Dal/CSTest;
invoke-virtual {v3, v4, v5}, Lcom/yingsoft/ksbao/Utilitys/Session;->put(Ljava/lang/Object;Ljava/lang/Object;)V
.line 362
new-instance v2, Landroid/content/Intent;
sget-object v4, Lcom/yingsoft/ksbao/Others/MainTabExpandableListGroupAdapter;->context:Landroid/app/Activity;
const-class v5, Lcom/yingsoft/ksbao/Activity2/testactivity;
invoke-direct {v2, v4, v5}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V
.line 363
.restart local v2 #intent:Landroid/content/Intent;
const-string v4, "Mode"
invoke-virtual {v2, v4, p4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
.line 364
invoke-static {v2, p2, v1, p4}, Lcom/yingsoft/ksbao/Activity/Subject;->putExtra(Landroid/content/Intent;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
.line 365
sget-object v4, Lcom/yingsoft/ksbao/Others/MainTabExpandableListGroupAdapter;->context:Landroid/app/Activity;
invoke-virtual {v4, v2, v6}, Landroid/app/Activity;->startActivityForResult(Landroid/content/Intent;I)V
goto :goto_0
.end method
.method public TestList(Ljava/lang/String;)Lcom/yingsoft/ksbao/Dal/CSTest;
.locals 11
.parameter "cpt"
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.prologue
const/4 v10, 0x0
.line 371
new-instance v5, Ljava/lang/StringBuilder;
const-string v6, "1.0/json/exam/"
invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
sget-object v6, Lcom/yingsoft/ksbao/Activity/Global;->SoftId:Ljava/lang/String;
invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v5
const-string v6, "/Chapter/Test/"
invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v5
invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
.line 372
.local v0, action:Ljava/lang/String;
const/4 v4, 0x0
.line 374
.local v4, response:Ljava/lang/String;
:try_start_0
iget-object v5, p0, Lcom/yingsoft/ksbao/Others/MainTabExpandableListGroupAdapter;->utility:Lcom/yingsoft/ksbao/Utilitys/Utility;
sget-object v6, Lcom/yingsoft/ksbao/Others/MainTabExpandableListGroupAdapter;->context:Landroid/app/Activity;
const/4 v7, 0x0
invoke-virtual {v5, v0, p1, v6, v7}, Lcom/yingsoft/ksbao/Utilitys/Utility;->readContentFromGet(Ljava/lang/String;Ljava/lang/String;Landroid/content/Context;Z)Ljava/lang/String;
move-result-object v4
.line 375
if-nez v4, :cond_0
.line 376
iget-object v5, p0, Lcom/yingsoft/ksbao/Others/MainTabExpandableListGroupAdapter;->progressDialog:Landroid/app/ProgressDialog;
invoke-virtual {v5}, Landroid/app/ProgressDialog;->dismiss()V
move-object v5, v10
.line 397
:goto_0
return-object v5
.line 379
:cond_0
new-instance v2, Lorg/json/JSONObject;
invoke-direct {v2, v4}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V
.line 380
.local v2, jsonobj:Lorg/json/JSONObject;
const-string v5, "State"
invoke-virtual {v2, v5}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v5
sput-object v5, Lcom/yingsoft/ksbao/Others/MainTabExpandableListGroupAdapter;->State:Ljava/lang/String;
.line 381
const-string v5, "Message"
invoke-virtual {v2, v5}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v5
sput-object v5, Lcom/yingsoft/ksbao/Others/MainTabExpandableListGroupAdapter;->Message:Ljava/lang/String;
.line 382
sget-object v5, Lcom/yingsoft/ksbao/Others/MainTabExpandableListGroupAdapter;->State:Ljava/lang/String;
const-string v6, "200"
invoke-virtual {v5, v6}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v5
if-eqz v5, :cond_1
.line 384
iget-object v5, p0, Lcom/yingsoft/ksbao/Others/MainTabExpandableListGroupAdapter;->myMessageHandler:Landroid/os/Handler;
const/4 v6, 0x1
const/4 v7, 0x1
const/4 v8, 0x1
const-string v9, "State200"
invoke-virtual {v5, v6, v7, v8, v9}, Landroid/os/Handler;->obtainMessage(IIILjava/lang/Object;)Landroid/os/Message;
move-result-object v3
.line 385
.local v3, m:Landroid/os/Message;
iget-object v5, p0, Lcom/yingsoft/ksbao/Others/MainTabExpandableListGroupAdapter;->myMessageHandler:Landroid/os/Handler;
invoke-virtual {v5, v3}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
move-object v5, v10
.line 386
goto :goto_0
.line 388
.end local v2 #jsonobj:Lorg/json/JSONObject;
.end local v3 #m:Landroid/os/Message;
:catch_0
move-exception v5
move-object v1, v5
.line 389
.local v1, e:Ljava/lang/Exception;
invoke-virtual {v1}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
move-result-object v5
sget-object v6, Lcom/yingsoft/ksbao/Activity/Global;->NetwordErr:Ljava/lang/String;
invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v5
if-eqz v5, :cond_2
.line 390
sget-object v5, Lcom/yingsoft/ksbao/Activity/Global;->NetwordErr:Ljava/lang/String;
invoke-static {v5}, Lcom/yingsoft/ksbao/Utilitys/Utility;->Throw(Ljava/lang/String;)V
.line 395
.end local v1 #e:Ljava/lang/Exception;
:cond_1
const-string v5, "u000d"
const-string v6, "r"
invoke-virtual {v4, v5, v6}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v4
.line 396
const-string v5, "u000a"
const-string v6, "n"
invoke-virtual {v4, v5, v6}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v4
.line 397
invoke-static {v4}, Lcom/yingsoft/ksbao/Others/MainTabExpandableListGroupAdapter;->JsonToDbcur(Ljava/lang/String;)Lcom/yingsoft/ksbao/Dal/CSTest;
move-result-object v5
goto :goto_0
.restart local v1 #e:Ljava/lang/Exception;
:cond_2
move-object v5, v10
.line 392
goto :goto_0
.end method
.method public getChild(II)Ljava/lang/Object;
.locals 1
.parameter "arg0"
.parameter "arg1"
.prologue
.line 85
iget-object v0, p0, Lcom/yingsoft/ksbao/Others/MainTabExpandableListGroupAdapter;->groups:Ljava/util/List;
invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object p0
.end local p0
check-cast p0, Lcom/yingsoft/ksbao/Others/ExpandaListGroup;
iget-object v0, p0, Lcom/yingsoft/ksbao/Others/ExpandaListGroup;->children:Ljava/util/List;
invoke-interface {v0, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
return-object v0
.end method
|
能力值:
( LV4,RANK:50 )
|
-
-
3 楼
public void Helper(CSTest paramCSTest, String paramString1, int paramInt, String paramString2)
{
String str1 = paramCSTest.getString(paramInt, "Chapter");
ListOfChapters.m_cpt = str1;
if (State.equals("100"))
{
Global.clickTime = 0;
Global.PatternRecognition = "";
if (bIsOncePrompt < 3)
{
Activity localActivity1 = context;
AlertDialog.Builder localBuilder1 = new AlertDialog.Builder(localActivity1).setTitle("考试宝典提醒您");
String str2 = Message;
AlertDialog.Builder localBuilder2 = localBuilder1.setMessage(str2);
MainTabExpandableListGroupAdapter.4 local4 = new MainTabExpandableListGroupAdapter.4(this, paramString1, str1, paramString2);
AlertDialog.Builder localBuilder3 = localBuilder2.setPositiveButton("免费试用 ", local4);
MainTabExpandableListGroupAdapter.5 local5 = new MainTabExpandableListGroupAdapter.5(this);
AlertDialog.Builder localBuilder4 = localBuilder3.setNegativeButton(" 软件充值 ", local5).setCancelable(0);
MainTabExpandableListGroupAdapter.6 local6 = new MainTabExpandableListGroupAdapter.6(this);
AlertDialog localAlertDialog = localBuilder4.setOnKeyListener(local6).show();
bIsOncePrompt += 1;
}
}
while (true)
{
return;
Session localSession1 = Session.getSession();
CSTest localCSTest1 = this.csDbCur;
localSession1.put("dbcur", localCSTest1);
Activity localActivity2 = context;
Intent localIntent1 = new Intent(localActivity2, testactivity.class);
Subject.putExtra(localIntent1, paramString1, str1, paramString2);
context.startActivityForResult(localIntent1, 1);
continue;
Session localSession2 = Session.getSession();
CSTest localCSTest2 = this.csDbCur;
localSession2.put("dbcur", localCSTest2);
Activity localActivity3 = context;
Intent localIntent2 = new Intent(localActivity3, testactivity.class);
Intent localIntent3 = localIntent2.putExtra("Mode", paramString2);
Subject.putExtra(localIntent2, paramString1, str1, paramString2);
context.startActivityForResult(localIntent2, 1);
}
}
|