当前位置: 首页>>代码示例>>Java>>正文


Java SocializeException类代码示例

本文整理汇总了Java中com.umeng.socialize.exception.SocializeException的典型用法代码示例。如果您正苦于以下问题:Java SocializeException类的具体用法?Java SocializeException怎么用?Java SocializeException使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


SocializeException类属于com.umeng.socialize.exception包,在下文中一共展示了SocializeException类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: dismiss

import com.umeng.socialize.exception.SocializeException; //导入依赖的package包/类
public void dismiss() {
    if (this.h != null) {
        if (!TextUtils.isEmpty(this.h.getString(SocializeProtocolConstants.PROTOCOL_KEY_UID))) {
            Log.d(a, "### dismiss ");
            if (this.c != null) {
                this.c.onComplete(this.h, this.m);
                if (this.f != null && this.f.isChecked()) {
                    this.t.sendEmptyMessage(2);
                }
            }
        } else if (this.c != null) {
            this.c.onError(new SocializeException("unfetch usid..."), this.m);
        }
    } else if (this.c != null) {
        this.c.onCancel(this.m);
    }
    super.dismiss();
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:19,代码来源:j.java

示例2: onError

import com.umeng.socialize.exception.SocializeException; //导入依赖的package包/类
public void onError(SocializeException socializeException, SHARE_MEDIA share_media) {
    int i = 0;
    this.d.a.addOauthData(this.a, share_media, 0);
    OauthHelper.remove(this.a, share_media);
    OauthHelper.removeTokenExpiresIn(this.a, share_media);
    if (this.b != null) {
        this.b.onError(socializeException, share_media);
    }
    if (this.c != null) {
        UMAuthListener[] uMAuthListenerArr = this.c;
        int length = uMAuthListenerArr.length;
        while (i < length) {
            uMAuthListenerArr[i].onError(socializeException, share_media);
            i++;
        }
    }
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:18,代码来源:d.java

示例3: a

import com.umeng.socialize.exception.SocializeException; //导入依赖的package包/类
protected i a() {
    try {
        i userInfo = this.b.getUserInfo(this.c);
        if (userInfo == null) {
            return userInfo;
        }
        try {
            if (userInfo.a == null || !this.d.getConfig().isSyncUserInfo()) {
                return userInfo;
            }
            a(this.c, userInfo.a);
            return userInfo;
        } catch (Exception e) {
            Log.w(v.a(), "Sync user center failed..", e);
            return userInfo;
        }
    } catch (SocializeException e2) {
        Log.e(v.a(), e2.toString());
        return null;
    }
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:22,代码来源:x.java

示例4: getFriends

import com.umeng.socialize.exception.SocializeException; //导入依赖的package包/类
public l getFriends(Context context, SHARE_MEDIA share_media, String str) throws
        SocializeException {
    l lVar = (l) new SocializeClient().execute(new k(context, this.a, share_media, str));
    if (lVar == null) {
        throw new SocializeException((int) StatusCode.ST_CODE_SDK_NORESPONSE, "Response is " +
                "null...");
    } else if (lVar.mStCode != 200) {
        throw new SocializeException(lVar.mStCode, lVar.mMsg);
    } else {
        if (lVar.a != null) {
            for (UMFriend usid : lVar.a) {
                usid.setUsid(str);
            }
        }
        return lVar;
    }
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:18,代码来源:BaseController.java

示例5: onComplete

import com.umeng.socialize.exception.SocializeException; //导入依赖的package包/类
public void onComplete(int i, Map<String, Object> map) {
    String share_media = this.a.toString();
    Object obj = (map == null || !map.containsKey(share_media)) ? null : 1;
    if (obj != null || this.g.c(this.a)) {
        if (obj != null) {
            String obj2 = map.get(share_media).toString();
            obj = this.g.c != null ? (String) this.g.c.get(share_media) : "";
            this.c.mExtraData.put(UMSsoHandler.APPKEY, obj2);
            this.c.mExtraData.put(UMSsoHandler.APPSECRET, obj);
            if (UMSsoHandler.mEntity == null) {
                UMSsoHandler.mEntity = this.g.a;
            }
        }
        this.c.authorize(this.d, this.f);
    } else if (this.b != null) {
        this.b.onError(new SocializeException("no appkey on " + share_media), this.a);
    }
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:19,代码来源:a.java

示例6: a

import com.umeng.socialize.exception.SocializeException; //导入依赖的package包/类
private boolean a(ICallbackListener iCallbackListener, int i) throws SocializeException {
    Class cls;
    if (iCallbackListener instanceof SnsPostListener) {
        cls = SnsPostListener.class;
    } else if (iCallbackListener instanceof SocializeClientListener) {
        cls = SocializeClientListener.class;
    } else if (iCallbackListener instanceof MulStatusListener) {
        cls = MulStatusListener.class;
    } else if (iCallbackListener instanceof UMAuthListener) {
        cls = UMAuthListener.class;
    } else {
        throw new SocializeException("unknow listener`s class.");
    }
    if (29 < getListener(cls).length) {
        return true;
    }
    return false;
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:19,代码来源:CallbackConfig.java

示例7: getListener

import com.umeng.socialize.exception.SocializeException; //导入依赖的package包/类
public <T> T[] getListener(Class<T> cls) throws SocializeException {
    Set hashSet = new HashSet();
    if (a((Class) cls, ICallbackListener.class)) {
        try {
            for (ICallbackListener iCallbackListener : WEAK_LISTENERS.keySet()) {
                if (cls.isInstance(iCallbackListener)) {
                    hashSet.add(iCallbackListener);
                }
            }
            for (ICallbackListener iCallbackListener2 : STRONG_LISTENERS.keySet()) {
                if (cls.isInstance(iCallbackListener2)) {
                    hashSet.add(iCallbackListener2);
                }
            }
        } catch (Exception e) {
            Log.w("com.umeng.socialize", "", e);
        }
        return hashSet.toArray((Object[]) Array.newInstance(cls, hashSet.size()));
    }
    throw new SocializeException("The param is not implements ICallbackLister.");
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:22,代码来源:CallbackConfig.java

示例8: dealOAuth

import com.umeng.socialize.exception.SocializeException; //导入依赖的package包/类
private void dealOAuth(BaseResp resp) {
    if (resp.errCode == 0) {
        loadOauthData("https://api.weixin.qq.com/sns/oauth2/access_token?appid=" + this
                .WX_APPID + "&secret=" + this.WX_SECRET + "&code=" + ((Resp) resp).code +
                "&grant_type=authorization_code");
    } else if (resp.errCode == -2) {
        SHARE_MEDIA share_media;
        UMAuthListener uMAuthListener = this.mAuthListener;
        if (this.isToCircle) {
            share_media = SHARE_MEDIA.WEIXIN_CIRCLE;
        } else {
            share_media = SHARE_MEDIA.WEIXIN;
        }
        uMAuthListener.onCancel(share_media);
    } else {
        this.mAuthListener.onError(new SocializeException("aouth error! error code :" + resp
                .errCode), this.isToCircle ? SHARE_MEDIA.WEIXIN_CIRCLE : SHARE_MEDIA.WEIXIN);
    }
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:20,代码来源:UMWXHandler.java

示例9: onComplete

import com.umeng.socialize.exception.SocializeException; //导入依赖的package包/类
public void onComplete(int i, SocializeEntity socializeEntity) {
    if (i == 200) {
        this.a.b.loadUrl(this.a.a(socializeEntity, this.a.m));
        return;
    }
    if (this.a.c != null) {
        this.a.c.onError(new SocializeException("can`t initlized entity.."), this.a.m);
    }
    this.a.b.loadData("Error:502  Please make sure your network is available.", "text/html",
            "UTF-8");
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:12,代码来源:r.java

示例10: getFriends

import com.umeng.socialize.exception.SocializeException; //导入依赖的package包/类
public l getFriends(Context context, SHARE_MEDIA share_media, String str) throws
        SocializeException {
    if (a(context)) {
        return super.getFriends(context, share_media, str);
    }
    return null;
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:8,代码来源:InitializeController.java

示例11: getUserInfo

import com.umeng.socialize.exception.SocializeException; //导入依赖的package包/类
public i getUserInfo(Context context) throws SocializeException {
    i iVar = (i) new SocializeClient().execute(new h(context, this.a));
    if (iVar == null) {
        throw new SocializeException((int) StatusCode.ST_CODE_SDK_NORESPONSE, "Response is " +
                "null...");
    } else if (iVar.mStCode == 200) {
        return iVar;
    } else {
        throw new SocializeException(iVar.mStCode, iVar.mMsg);
    }
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:12,代码来源:BaseController.java

示例12: onComplete

import com.umeng.socialize.exception.SocializeException; //导入依赖的package包/类
public void onComplete(int i, SocializeEntity socializeEntity) {
    if (this.a.b == null) {
        return;
    }
    if (i == 200) {
        this.a.b.onComplete(this.a.e, this.a.a);
        Log.v("10.13", "auth success");
        return;
    }
    this.a.b.onError(new SocializeException(i, "upload platform appkey failed."), this.a.a);
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:12,代码来源:l.java

示例13: onError

import com.umeng.socialize.exception.SocializeException; //导入依赖的package包/类
public void onError(SocializeException socializeException, SHARE_MEDIA share_media) {
    Log.e("com.umeng.socialize", "do auth by sso failed." + socializeException.toString());
    Log.e(this.c.e, "", socializeException);
    this.d = !this.d;
    if (!this.d || share_media.isCustomPlatform()) {
        this.a.onError(socializeException, share_media);
    } else {
        this.c.a(this.b, share_media, (UMAuthListener) this);
    }
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:11,代码来源:f.java

示例14: authorize

import com.umeng.socialize.exception.SocializeException; //导入依赖的package包/类
private void authorize(int activityCode, UMAuthListener listener) {
    this.mAuthListener = listener;
    if (!(bindRemoteSSOService(this.mContext) || listener == null)) {
        listener.onError(new SocializeException("start sina remote service failed."), this
                .mPlatform);
    }
    SocializeConfig.setSelectedPlatfrom(SHARE_MEDIA.SINA);
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:9,代码来源:SinaSsoHandler.java

示例15: setBaseUrl

import com.umeng.socialize.exception.SocializeException; //导入依赖的package包/类
public void setBaseUrl(String str) {
    try {
        super.setBaseUrl(new URL(new URL(str), getPath()).toString());
    } catch (Throwable e) {
        throw new SocializeException("Can not generate correct url in SocializeRequest [" +
                getBaseUrl() + "]", e);
    }
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:9,代码来源:SocializeRequest.java


注:本文中的com.umeng.socialize.exception.SocializeException类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。