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

Java QQToken类代码示例

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

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



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

示例1: onCreate

import com.tencent.connect.auth.QQToken; //导入依赖的package包/类
public void onCreate(Bundle bundle) {
    super.onCreate(bundle);
    requestWindowFeature(1);
    setRequestedOrientation(1);
    setContentView(a());
    this.d = new Handler();
    Bundle bundleExtra = getIntent().getBundleExtra(Constants.KEY_PARAMS);
    this.r = bundleExtra.getString(SocialConstants.PARAM_AVATAR_URI);
    this.c = bundleExtra.getString("return_activity");
    String string = bundleExtra.getString("appid");
    String string2 = bundleExtra.getString("access_token");
    long j = bundleExtra.getLong("expires_in");
    String string3 = bundleExtra.getString("openid");
    this.n = bundleExtra.getInt("exitAnim");
    this.b = new QQToken(string);
    this.b.setAccessToken(string2, ((j - System.currentTimeMillis()) / 1000) + "");
    this.b.setOpenId(string3);
    b();
    e();
    this.m = System.currentTimeMillis();
    a("10653", 0);
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:23,代码来源:ImageActivity.java


示例2: PKDialog

import com.tencent.connect.auth.QQToken; //导入依赖的package包/类
public PKDialog(Context context, String str, String str2, IUiListener iUiListener, QQToken qQToken) {
    super(context, 16973840);
    this.mWeakContext = new WeakReference(context);
    this.mUrl = str2;
    this.mListener = new OnTimeListener(context, str, str2, qQToken.getAppId(), iUiListener);
    this.mHandler = new THandler(this.mListener, context.getMainLooper());
    this.listener = iUiListener;
    this.mWebviewHeight = Math.round(185.0f * context.getResources().getDisplayMetrics().density);
    f.e(TAG, "density=" + context.getResources().getDisplayMetrics().density + "; webviewHeight=" + this.mWebviewHeight);
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:11,代码来源:PKDialog.java


示例3: TDialog

import com.tencent.connect.auth.QQToken; //导入依赖的package包/类
public TDialog(Context context, String str, String str2, IUiListener iUiListener, QQToken qQToken) {
    super(context, 16973840);
    this.c = new WeakReference(context);
    this.e = str2;
    this.f = new OnTimeListener(context, str, str2, qQToken.getAppId(), iUiListener);
    this.j = new THandler(this.f, context.getMainLooper());
    this.g = iUiListener;
    this.l = qQToken;
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:10,代码来源:TDialog.java


示例4: PKDialog

import com.tencent.connect.auth.QQToken; //导入依赖的package包/类
public PKDialog(Context context, String str, String str2, IUiListener iUiListener, QQToken
        qQToken) {
    super(context, 16973840);
    this.mWeakContext = new WeakReference(context);
    this.mUrl = str2;
    this.mListener = new OnTimeListener(context, str, str2, qQToken.getAppId(), iUiListener);
    this.mHandler = new THandler(this.mListener, context.getMainLooper());
    this.listener = iUiListener;
    this.mWebviewHeight = Math.round(185.0f * context.getResources().getDisplayMetrics()
            .density);
    f.e(TAG, "density=" + context.getResources().getDisplayMetrics().density + "; " +
            "webviewHeight=" + this.mWebviewHeight);
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:14,代码来源:PKDialog.java


示例5: onCreate

import com.tencent.connect.auth.QQToken; //导入依赖的package包/类
public void onCreate(Bundle bundle)
{
    super.onCreate(bundle);
    requestWindowFeature(1);
    setRequestedOrientation(1);
    setContentView(a());
    d = new Handler();
    Bundle bundle1 = getIntent().getBundleExtra("key_params");
    r = bundle1.getString("picture");
    c = bundle1.getString("return_activity");
    String s1 = bundle1.getString("appid");
    String s2 = bundle1.getString("access_token");
    long l1 = bundle1.getLong("expires_in");
    String s3 = bundle1.getString("openid");
    n = bundle1.getInt("exitAnim");
    b = new QQToken(s1);
    b.setAccessToken(s2, (new StringBuilder()).append((l1 - System.currentTimeMillis()) / 1000L).append("").toString());
    b.setOpenId(s3);
    b();
    e();
    m = System.currentTimeMillis();
    a("10653", 0L);
}
 
开发者ID:vishnudevk,项目名称:MiBandDecompiled,代码行数:24,代码来源:ImageActivity.java


示例6: c

import com.tencent.connect.auth.QQToken; //导入依赖的package包/类
public static void c(Context context, QQToken qqtoken)
{
    b(context, qqtoken);
    String s = qqtoken.getAppId();
    String s1 = (new StringBuilder()).append("Aqc").append(s).toString();
    StatConfig.setAutoExceptionCaught(false);
    StatConfig.setEnableSmartReporting(true);
    StatConfig.setSendPeriodMinutes(1440);
    StatConfig.setStatSendStrategy(StatReportStrategy.PERIOD);
    StatConfig.setStatReportUrl("http://cgi.connect.qq.com/qqconnectutil/sdk");
    try
    {
        StatService.startStatService(context, s1, "1.0.0");
        return;
    }
    catch (MtaSDkException mtasdkexception)
    {
        Log.e("DEBUG", "MTA init Failed.");
    }
}
 
开发者ID:vishnudevk,项目名称:MiBandDecompiled,代码行数:21,代码来源:a.java


示例7: TaskGuide

import com.tencent.connect.auth.QQToken; //导入依赖的package包/类
public TaskGuide(Context context, QQAuth qqauth, QQToken qqtoken)
{
    super(context, qqauth, qqtoken);
    d = null;
    e = null;
    g = new Handler(Looper.getMainLooper());
    i = com.tencent.open.z.a;
    j = com.tencent.open.z.a;
    A = 0;
    B = 0;
    C = 0.0F;
    D = new AccelerateInterpolator();
    E = false;
    a = false;
    F = false;
    G = false;
    L = null;
    M = null;
    f = (WindowManager)context.getSystemService("window");
    d();
}
 
开发者ID:vishnudevk,项目名称:MiBandDecompiled,代码行数:22,代码来源:TaskGuide.java


示例8: getUserInfo

import com.tencent.connect.auth.QQToken; //导入依赖的package包/类
public static void getUserInfo(Activity activity,IUiListener listener) {
    if (api == null) {
        api = Tencent.createInstance(APP_ID, MainApp.getContext());
    }

    if(api==null){
        return;
    }

    QQToken token=api.getQQToken();
    UserInfo info = new UserInfo(activity, token);
    info.getUserInfo(listener);

}
 
开发者ID:NewCasino,项目名称:browser,代码行数:15,代码来源:QQShareApi.java


示例9: parseToken

import com.tencent.connect.auth.QQToken; //导入依赖的package包/类
private static QQToken parseToken(String appId, SocialToken socialToken) {
    QQToken token = new QQToken(appId);
    //3600是随意定义的,不影响token的使用
    token.setAccessToken(socialToken.getToken(), "3600");
    token.setOpenId(socialToken.getOpenId());

    return token;
}
 
开发者ID:yangjie127,项目名称:ESSocialSDK-master,代码行数:9,代码来源:QQSSOProxy.java


示例10: BaseApi

import com.tencent.connect.auth.QQToken; //导入依赖的package包/类
public BaseApi(QQAuth qQAuth, QQToken qQToken) {
    this.mTaskList = null;
    this.mActivityIntent = null;
    this.mUiListener = null;
    this.mQQAuth = qQAuth;
    this.mToken = qQToken;
    this.mTaskList = new ArrayList();
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:9,代码来源:BaseApi.java


示例11: b

import com.tencent.connect.auth.QQToken; //导入依赖的package包/类
public static void b(Context context, QQToken qQToken) {
    try {
        if (a(context, qQToken)) {
            f.invoke(a, new Object[]{Boolean.valueOf(true)});
            return;
        }
        f.invoke(a, new Object[]{Boolean.valueOf(false)});
    } catch (Exception e) {
        e.printStackTrace();
    }
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:12,代码来源:a.java


示例12: d

import com.tencent.connect.auth.QQToken; //导入依赖的package包/类
public static void d(Context context, QQToken qQToken) {
    if (g) {
        b(context, qQToken);
        if (qQToken.getOpenId() != null) {
            try {
                c.invoke(b, new Object[]{context, qQToken.getOpenId()});
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:13,代码来源:a.java


示例13: a

import com.tencent.connect.auth.QQToken; //导入依赖的package包/类
public static void a(Context context, QQToken qQToken, String str, String... strArr) {
    if (g) {
        b(context, qQToken);
        try {
            d.invoke(b, new Object[]{context, str, strArr});
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:11,代码来源:a.java


示例14: onDownloadStart

import com.tencent.connect.auth.QQToken; //导入依赖的package包/类
public void onDownloadStart(String str, String str2, String str3, String str4, long j) {
    f.b(f.d, "-->(AppbarActivity)onDownloadStart : url = " + str);
    try {
        this.a.startActivity(new Intent("android.intent.action.VIEW", Uri.parse(str)));
    } catch (Exception e) {
        f.b(f.d, "-->(AppbarActivity)onDownloadStart : activity aciton_view not found.");
    }
    QQToken access$500 = this.a.getToken();
    if (access$500 != null) {
        a.a(access$500.getAppId(), "200", "SDK.APPBAR.HOME ACTION");
    }
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:13,代码来源:AppbarActivity.java


示例15: shareToQQ

import com.tencent.connect.auth.QQToken; //导入依赖的package包/类
public void shareToQQ() {
    final QQToken token = getToken();
    if (token != null) {
        QQShare qQShare = new QQShare(this, token);
        Bundle bundle = new Bundle();
        bundle.putString("title", this.model.a);
        bundle.putString("targetUrl", this.model.d);
        bundle.putString("summary", this.model.b);
        bundle.putString("imageUrl", this.model.c);
        f.b(f.d, "-->(AppbarActivity)shareToQQ : model.mTitle = " + this.model.a);
        f.b(f.d, "-->(AppbarActivity)shareToQQ : model.mTargetUrl = " + this.model.d);
        f.b(f.d, "-->(AppbarActivity)shareToQQ : model.mDescription = " + this.model.b);
        f.b(f.d, "-->(AppbarActivity)shareToQQ : model.mIconUrl = " + this.model.c);
        qQShare.shareToQQ(this, bundle, new IUiListener(this) {
            final /* synthetic */ AppbarActivity b;

            public void onError(UiError uiError) {
                f.b(f.d, "-->(AppbarActivity)shareToQQ onError");
                this.b.jsBridge.responseShareFail(1);
            }

            public void onComplete(Object obj) {
                f.b(f.d, "-->(AppbarActivity)shareToQQ onComplete");
                this.b.jsBridge.responseShare(1);
                a.a(token.getAppId(), PLAYER.PLAY, "SDK.APPBAR.HOME.SHARE.QQ");
            }

            public void onCancel() {
                f.b(f.d, "-->(AppbarActivity)shareToQQ onCancel");
                this.b.jsBridge.responseShareFail(1);
            }
        });
        a.a(token.getAppId(), "200", "SDK.APPBAR.HOME.SHARE.QQ");
    }
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:36,代码来源:AppbarActivity.java


示例16: shareToQzone

import com.tencent.connect.auth.QQToken; //导入依赖的package包/类
public void shareToQzone() {
    final QQToken token = getToken();
    if (token != null) {
        QzoneShare qzoneShare = new QzoneShare(this, token);
        Bundle bundle = new Bundle();
        bundle.putInt("req_type", 1);
        bundle.putString("title", this.model.a);
        bundle.putString("summary", this.model.b);
        bundle.putString("targetUrl", this.model.d);
        ArrayList arrayList = new ArrayList();
        f.b(f.d, "-->shareToQzone : mIconUrl = " + this.model.c);
        arrayList.add(this.model.c);
        bundle.putStringArrayList("imageUrl", arrayList);
        qzoneShare.shareToQzone(this, bundle, new IUiListener(this) {
            final /* synthetic */ AppbarActivity b;

            public void onError(UiError uiError) {
                f.b(f.d, "-->(AppbarActivity)shareToQzone onError");
                this.b.jsBridge.responseShareFail(2);
            }

            public void onComplete(Object obj) {
                f.b(f.d, "-->(AppbarActivity)shareToQzone onComplete");
                this.b.jsBridge.responseShare(2);
                a.a(token.getAppId(), PLAYER.PLAY, "SDK.APPBAR.HOME.SHARE.QZ");
            }

            public void onCancel() {
                f.b(f.d, "-->(AppbarActivity)shareToQzone onCancel");
                this.b.jsBridge.responseShareFail(2);
            }
        });
        a.a(token.getAppId(), "200", "SDK.APPBAR.HOME.SHARE.QZ");
    }
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:36,代码来源:AppbarActivity.java


示例17: a

import com.tencent.connect.auth.QQToken; //导入依赖的package包/类
private static void a(Context context, QQToken qQToken, String str) {
    if (str.indexOf("add_share") > -1 || str.indexOf("upload_pic") > -1 || str.indexOf
            ("add_topic") > -1 || str.indexOf("set_user_face") > -1 || str.indexOf("add_t") >
            -1 || str.indexOf("add_pic_t") > -1 || str.indexOf("add_pic_url") > -1 || str
            .indexOf("add_video") > -1) {
        a.a(context, qQToken, "requireApi", str);
    }
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:9,代码来源:HttpUtils.java


示例18: TDialog

import com.tencent.connect.auth.QQToken; //导入依赖的package包/类
public TDialog(Context context, String str, String str2, IUiListener iUiListener, QQToken
        qQToken) {
    super(context, 16973840);
    this.c = new WeakReference(context);
    this.e = str2;
    this.f = new OnTimeListener(context, str, str2, qQToken.getAppId(), iUiListener);
    this.j = new THandler(this.f, context.getMainLooper());
    this.g = iUiListener;
    this.l = qQToken;
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:11,代码来源:TDialog.java


示例19: onComplete

import com.tencent.connect.auth.QQToken; //导入依赖的package包/类
public void onComplete(Object response) {
    /*
      到此已经获得OpenID以及其他你想获得的内容了
      QQ登录成功了,我们还想获取一些QQ的基本信息,比如昵称,头像
      sdk给我们提供了一个类UserInfo,这个类中封装了QQ用户的一些信息,我么可以通过这个类拿到这些信息
     */
    QQToken qqToken = mTencent.getQQToken();
    UserInfo info = new UserInfo(mContext, qqToken);
    mSubscriber.onNext(info);
}
 
开发者ID:fanwucoder,项目名称:mvpChat,代码行数:11,代码来源:RxUser.java


示例20: QzoneShare

import com.tencent.connect.auth.QQToken; //导入依赖的package包/类
public QzoneShare(Context context, QQToken qqtoken)
{
    super(context, qqtoken);
    a = true;
    b = false;
    c = false;
    d = false;
}
 
开发者ID:vishnudevk,项目名称:MiBandDecompiled,代码行数:9,代码来源:QzoneShare.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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