• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java SocializeException类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: toFormat

import com.umeng.socialize.exception.SocializeException; //导入依赖的package包/类
public String toFormat() throws SocializeException {
    if (this.mPaltform != null) {
        if (this.mUsid == null) {
            this.mUsid = "";
        }
        return "{" + this.mPaltform.toString() + ":" + this.mUsid + "}";
    }
    throw new SocializeException("can`t format snspair string.");
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:10,代码来源:SNSPair.java


示例17: onError

import com.umeng.socialize.exception.SocializeException; //导入依赖的package包/类
public void onError(SocializeException socializeException, SHARE_MEDIA share_media) {
    this.b.b.a.c();
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:4,代码来源:f.java


示例18: onError

import com.umeng.socialize.exception.SocializeException; //导入依赖的package包/类
public void onError(SocializeException socializeException, SHARE_MEDIA share_media) {
    if (this.a.b != null) {
        this.a.b.onError(socializeException, share_media);
    }
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:6,代码来源:k.java


示例19: getUserInfo

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


示例20: a

import com.umeng.socialize.exception.SocializeException; //导入依赖的package包/类
protected void a(Context context, long j, FetchCommetsListener fetchCommetsListener) throws
        SocializeException {
    this.c.getComments(context, fetchCommetsListener, j);
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:5,代码来源:InitializeController.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Poly1305类代码示例发布时间:2022-05-23
下一篇:
Java LootEntryTable类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap