本文整理汇总了Java中com.tencent.connect.common.Constants.REQUEST_APPBAR属性的典型用法代码示例。如果您正苦于以下问题:Java Constants.REQUEST_APPBAR属性的具体用法?Java Constants.REQUEST_APPBAR怎么用?Java Constants.REQUEST_APPBAR使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.tencent.connect.common.Constants
的用法示例。
在下文中一共展示了Constants.REQUEST_APPBAR属性的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onActivityResult
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == Constants.REQUEST_LOGIN
|| requestCode == Constants.REQUEST_APPBAR) {
IUiListener listener = LoginByQQ.getmUiListener();
if (listener != null) {
Tencent.onActivityResultData(requestCode, resultCode, data,
listener);
}
}
SsoHandler ssoHandler = LoginByWB.getmSsoHandler();
if (ssoHandler != null) {
ssoHandler.authorizeCallBack(requestCode, resultCode, data);
}
}
示例2: onActivityResult
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode == Constants.REQUEST_LOGIN || requestCode == Constants.REQUEST_APPBAR) {
Tencent.onActivityResultData(requestCode, resultCode, data, loginListener);
}
super.onActivityResult(requestCode, resultCode, data);
}
示例3: onActivityResult
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
SocialSDK.oauthWeiboCallback(SocialOauthActivity.this, requestCode, resultCode, data);
if (requestCode == Constants.REQUEST_LOGIN || requestCode == Constants.REQUEST_APPBAR) {
SocialSDK.oauthQQCallback(requestCode, resultCode, data);
}
if (type == 0) {
finish();
}
}
示例4: onActivityResult
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
SocialSDK.oauthWeiboCallback(SsoActivity.this, requestCode, resultCode, data);
if (requestCode == Constants.REQUEST_LOGIN || requestCode == Constants.REQUEST_APPBAR) {
SocialSDK.oauthQQCallback(requestCode, resultCode, data);
}
}
示例5: onActivityResult
public void onActivityResult(int requestCode, int resultCode, Intent data) {
Log.d(TAG, "-->onActivityResult " + requestCode + " resultCode=" + resultCode);
if (requestCode == Constants.REQUEST_LOGIN ||
requestCode == Constants.REQUEST_APPBAR) {
// Tencent.onActivityResultData(requestCode,resultCode,data,loginListener);
}
}
示例6: onActivityResult
public void onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode == Constants.REQUEST_LOGIN ||
requestCode == Constants.REQUEST_APPBAR) {
Tencent.onActivityResultData(requestCode, resultCode, data, qqIUiListener);
}
// if (callbackManager != null) {
// callbackManager.onActivityResult(requestCode, resultCode, data);
// }
}
示例7: onActivityResult
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
Log.d("ruolan", "-->onActivityResult " + requestCode + " resultCode=" + resultCode);
if (requestCode == Constants.REQUEST_LOGIN ||
requestCode == Constants.REQUEST_APPBAR) {
Tencent.onActivityResultData(requestCode, resultCode, data, loginListener);
}
super.onActivityResult(requestCode, resultCode, data);
}
示例8: onActivityResult
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
// Log.d(TAG, "-->onActivityResult " + requestCode + " resultCode=" + resultCode);
if (requestCode == Constants.REQUEST_LOGIN ||
requestCode == Constants.REQUEST_APPBAR) {
Util.showProgressDialog(LogOnActivity.this,"正在登陆","登陆中...");
Tencent.onActivityResultData(requestCode,resultCode,data,loginListener);
}
super.onActivityResult(requestCode, resultCode, data);
}
示例9: onActivityResult
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == Constants.REQUEST_LOGIN ||
requestCode == Constants.REQUEST_APPBAR) {
Tencent.onActivityResultData(requestCode,resultCode,data,this);
}
}
示例10: onActivityResult
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode == Constants.REQUEST_LOGIN ||
requestCode == Constants.REQUEST_APPBAR) {
Tencent.onActivityResultData(requestCode,resultCode,data,this);
}
super.onActivityResult(requestCode, resultCode, data);
}
示例11: 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;
}
}