导航菜单

页面标题

页面副标题

95爱播免登录版 v3.1.9 - UploadService.java 源代码

正在查看: 95爱播免登录版 v3.1.9 应用的 UploadService.java JAVA 源代码文件

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


package com.showself.service;

import android.app.IntentService;
import android.content.Intent;
import com.mifeng.ui.R;
import com.showself.domain.MediaInfo;
import com.showself.domain.PhotoInfo;
import com.showself.utils.Utils;
import java.util.HashMap;
import org.cocos2dx.lib.GameControllerDelegate;

public class UploadService extends IntentService implements e {
    private int a;
    private String b;
    private String c;
    private PhotoInfo d;

    private MediaInfo f2334e;

    public UploadService() {
        super("upload_service");
    }

    private void b() {
        synchronized (this) {
            notify();
        }
    }

    @Override
    public void a(Object... objArr) {
        g.j(this);
        int intValue = ((Integer) objArr[0]).intValue();
        HashMap hashMap = (HashMap) objArr[1];
        if (hashMap != null) {
            int intValue2 = ((Integer) hashMap.get(com.showself.net.e.n1)).intValue();
            String str = (String) hashMap.get(com.showself.net.e.o1);
            if (intValue == 1005) {
                if (intValue2 == 0) {
                    Utils.Y0(this, R.string.put_success);
                    this.d = (PhotoInfo) hashMap.get("photo");
                    if (this.a == 0) {
                        sendBroadcast(new Intent("com.showself.updata"));
                    } else {
                        sendBroadcast(new Intent("activity_notify").putExtra("photo", this.d));
                    }
                    b();
                } else {
                    Utils.Z0(this, str);
                    b();
                }
                b();
                return;
            }
            if (intValue != 10096) {
                return;
            }
            if (intValue2 == 0) {
                Utils.Y0(this, R.string.put_success);
                this.f2334e = (MediaInfo) hashMap.get("MediaInfo");
                if (this.a == 0) {
                    b();
                } else {
                    sendBroadcast(new Intent("com.showself.updata.activity").putExtra("MediaInfo", this.f2334e));
                    b();
                }
            } else {
                Utils.Z0(this, str);
                b();
            }
            b();
        }
    }

    @Override
    protected void onHandleIntent(Intent intent) {
        int i2;
        String action = intent.getAction();
        this.a = intent.getExtras().getInt("aid");
        String string = intent.getExtras().getString("tags");
        this.c = intent.getExtras().getString("note");
        this.b = intent.getExtras().getString("phontPath");
        int i3 = intent.getExtras().getInt("duration");
        String str = "";
        String str2 = "";
        if (action.equals("com.showself.upload.AUDIO")) {
            str = intent.getExtras().getString("audiopath");
            str2 = "audiopath";
            i2 = GameControllerDelegate.BUTTON_B;
        } else {
            i2 = 0;
        }
        HashMap hashMap = new HashMap();
        hashMap.put("aid", Integer.valueOf(this.a));
        hashMap.put("tags", string);
        hashMap.put("note", this.c);
        hashMap.put(str2, str);
        hashMap.put("duration", Integer.valueOf(i3));
        hashMap.put("imagePath", this.b);
        f fVar = new f(i2, hashMap);
        g.b(this);
        g.c(fVar, this);
        synchronized (this) {
            try {
                wait();
            } catch (InterruptedException e2) {
                e2.printStackTrace();
            }
        }
    }
}