ShareSDK第三方登錄 ...
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;