导航菜单

页面标题

页面副标题

Aptoide v9.22.5.3 - a$b.java 源代码

正在查看: Aptoide v9.22.5.3 应用的 a$b.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package e.f.a.a;

import android.content.Context;
import android.os.AsyncTask;
import android.util.Log;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.params.BasicHttpParams;
import org.apache.http.params.HttpConnectionParams;

public class a$b extends AsyncTask<Void, Void, Integer> {
    private Context a;
    private String b;
    final a c;

    public a$b(a aVar, Context context, String str) {
        this.c = aVar;
        this.a = context;
        this.b = str;
    }

    @Override
    public Integer doInBackground(Void... voidArr) {
        try {
            BasicHttpParams basicHttpParams = new BasicHttpParams();
            HttpConnectionParams.setSocketBufferSize(basicHttpParams, 8192);
            DefaultHttpClient defaultHttpClient = new DefaultHttpClient(basicHttpParams);
            HttpPost httpPost = new HttpPost("https://api.indicative.com/service/event");
            httpPost.setHeader("Content-Type", "application/json");
            httpPost.addHeader("Indicative-Client", "Android");
            httpPost.setEntity(new StringEntity(this.b, "UTF-8"));
            return Integer.valueOf(defaultHttpClient.execute(httpPost).getStatusLine().getStatusCode());
        } catch (Exception e2) {
            Log.v("Indicative", "AsyncTask: " + e2.getMessage(), e2);
            return 400;
        }
    }

    @Override
    public void onPostExecute(Integer num) {
        if (num.intValue() == 0 || num.intValue() == 408 || num.intValue() == 500) {
            a.a(this.b);
        }
    }
}