您的位置:首页 > 移动开发

仿拉手团购App5--登录界面2

2017-05-16 23:05 190 查看




ShareSDK第三方登录

case R.id.login_bottom_iv_qq:
Platform qq = ShareSDK.getPlatform(QQ.NAME);
authorize(qq);
break;
case R.id.login_bottom_iv_wechat:
Platform wechat = ShareSDK.getPlatform(Wechat.NAME);
authorize(wechat);
break;
case R.id.login_bottom_iv_weibo:
Platform sina = ShareSDK.getPlatform(SinaWeibo.NAME);
authorize(sina);
/*Platform weibo = ShareSDK.getPlatform(SinaWeibo.NAME);
weibo.SSOSetting(false);  //设置false表示使用SSO授权方式
weibo.setPlatformActionListener(this); // 设置分享事件回调
weibo.authorize();//单独授权
weibo.showUser(null);//授权并获取用户信息*/
break;


  
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: