本文整理汇总了Java中com.tencent.connect.common.Constants.REQUEST_QZONE_SHARE属性的典型用法代码示例。如果您正苦于以下问题:Java Constants.REQUEST_QZONE_SHARE属性的具体用法?Java Constants.REQUEST_QZONE_SHARE怎么用?Java Constants.REQUEST_QZONE_SHARE使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.tencent.connect.common.Constants
的用法示例。
在下文中一共展示了Constants.REQUEST_QZONE_SHARE属性的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onActivityResult
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == Constants.REQUEST_QZONE_SHARE || requestCode == Constants.REQUEST_QQ_SHARE) {
SocialSDK.shareToQCallback(requestCode, resultCode, data);
finish();
}
}
示例2: onActivityResult
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == Constants.REQUEST_QZONE_SHARE || requestCode == Constants.REQUEST_QQ_SHARE) {
SocialSDK.shareToQCallback(requestCode, resultCode, data);
}
}
示例3: onActivityResult
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
LogInfo.log("fornia", "SharePageActivity onActivityResult");
if (requestCode == Constants.REQUEST_QQ_SHARE && resultCode == 0) {
LogInfo.log("fornia", "SharePageActivity 1onActivityResult");
finish();
}
if (requestCode == Constants.REQUEST_QZONE_SHARE && resultCode == 0) {
LogInfo.log("fornia", "SharePageActivity 2onActivityResult");
finish();
}
if (this.mSsoHandler != null) {
this.mSsoHandler.authorizeCallBack(requestCode, resultCode, data);
}
LogInfo.log("fornia", "SharePageActivity onActivityResult resultCode" + resultCode);
}
示例4: onActivityResult
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode == Constants.REQUEST_QQ_SHARE || requestCode == Constants.REQUEST_QZONE_SHARE) {
if (mIUiListenerWrap != null)
Tencent.handleResultData(data, mIUiListenerWrap);
} else if (requestCode == Constants.REQUEST_LOGIN) {
if (mQQLoginHelper != null)
mQQLoginHelper.handleResultData(data);
}
}
示例5: onActivityResult
@Override
public void onActivityResult(Activity activity, int requestCode, int resultCode, Intent data, SocializeListeners.ShareListener listener) {
super.onActivityResult(activity, requestCode, resultCode, data, listener);
if (requestCode == Constants.REQUEST_QZONE_SHARE) {
Log.d(TAG, "handle on activity result");
Tencent.onActivityResultData(requestCode, resultCode, data, mUiListener);
}
}
示例6: onActivityResult
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == Constants.REQUEST_QQ_SHARE || requestCode == Constants.REQUEST_QZONE_SHARE) {
Tencent.onActivityResultData(requestCode, resultCode, data, null);
}
}
示例7: QQCallBack
/**
* 保证QQ 登录、分享,QQ空间分享成功回调,此方法应在 activity onActivityResult(int requestCode, int resultCode, Intent data)
* 中调用,并且调用顺序先于super.onActivityResult(requestCode, resultCode, data);
*
* @param requestCode 对应于 activity 中的 requestCode
* @param resultCode 对应于 activity 中的 resultCode
* @param data 对应于 activity 中的 activity
* @param listener 绑定的监听器,一般情况下是null,如果没有回调,则此处要传入相应的监听器
*/
public void QQCallBack(int requestCode, int resultCode, Intent data, QQListener listener) {
switch (requestCode) {
case Constants.REQUEST_LOGIN:
case Constants.REQUEST_APPBAR:
Tencent.onActivityResultData(requestCode, resultCode, data, listener);
break;
case Constants.REQUEST_QQ_SHARE:
Tencent.onActivityResultData(requestCode, resultCode, data, listener);
break;
case Constants.REQUEST_QZONE_SHARE:
Tencent.onActivityResultData(requestCode, resultCode, data, listener);
break;
}
}
示例8: doShareCallback
@Override
public boolean doShareCallback(int requestCode, int resultCode, Intent data) {
if (requestCode == Constants.REQUEST_QQ_SHARE
|| requestCode == Constants.REQUEST_QZONE_SHARE) {
if (callback != null) {
Tencent.onActivityResultData(requestCode, resultCode, data, generateShareListener());
}
return true;
}
return false;
}
示例9: onResult
@Override
public void onResult(int requestCode, int resultCode, Intent data) {
if (requestCode == Constants.REQUEST_QQ_SHARE || requestCode == Constants.REQUEST_QZONE_SHARE) {
Tencent.onActivityResultData(requestCode, resultCode, data, mListener);
}
}