13Poker by gametower unlimited gems v0.4版本的 MD5 值为:51324fc0f195c34821074948ab266846
以下内容为反编译后的 a.java 源代码,内容仅作参考
package com.startapp.android.publish.b;
import android.content.Context;
import android.os.AsyncTask;
import android.text.TextUtils;
import java.util.ArrayList;
import java.util.List;
public class a extends AsyncTask<Void, Void, Boolean> {
private List<com.startapp.android.publish.a> f176a;
private Context b;
private List<String> c = new ArrayList();
public a(Context context, List<com.startapp.android.publish.a> list) {
this.f176a = list;
this.b = context;
}
private List<String> a(List<String> list, String str, String str2) {
ArrayList arrayList = new ArrayList();
for (int i = 0; i < list.size() / 5; i++) {
arrayList.add("http://www.startappexchange.com/tracking/adImpression?" + TextUtils.join("&", list.subList(i, i + 5 > list.size() ? list.size() : i + 5)) + "&isShown=" + str + "&appPresence=" + str2);
}
if (arrayList.size() == 0 && list.size() > 0) {
arrayList.add("http://www.startappexchange.com/tracking/adImpression?" + TextUtils.join("&", list) + "&isShown=" + str + "&appPresence=" + str2);
}
com.startapp.android.publish.d.g.a(3, "newUrlList size = " + arrayList.size());
return arrayList;
}
private void a() {
String str;
b();
String str2 = "";
int i = 0;
while (i < this.c.size()) {
try {
str = this.c.get(i);
} catch (com.startapp.android.publish.d.i e) {
e = e;
}
try {
if (!str.isEmpty()) {
com.startapp.android.publish.c.b.a(this.b, str, null, null);
}
i++;
str2 = str;
} catch (com.startapp.android.publish.d.i e2) {
str2 = str;
e = e2;
com.startapp.android.publish.d.g.a(6, "unable to send adImpression request for appPresence [" + str2 + "]", e);
return;
}
}
}
private void b() {
com.startapp.android.publish.d.g.a(3, "in getDParameter()");
ArrayList arrayList = new ArrayList();
ArrayList arrayList2 = new ArrayList();
for (com.startapp.android.publish.a aVar : this.f176a) {
if (!aVar.c()) {
String str = aVar.a().split("tracking/adImpression[?]d=")[1];
if (aVar.d()) {
arrayList.add("d=" + str);
} else {
arrayList2.add("d=" + str);
}
}
}
com.startapp.android.publish.d.g.a(3, "appPresence tracking size = " + arrayList.size() + "normal size = " + arrayList2.size());
this.c.addAll(a(arrayList, "false", "true"));
this.c.addAll(a(arrayList2, "false", "false"));
}
@Override
public Boolean doInBackground(Void... voidArr) {
com.startapp.android.publish.d.g.a(3, "in doInBackground handler");
a();
return true;
}
}