当前位置: 首页>>代码示例>>Java>>正文


Java Constants.REQUEST_APPBAR属性代码示例

本文整理汇总了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);
	}
}
 
开发者ID:bigthing33,项目名称:LoginDemo,代码行数:16,代码来源:MainActivity.java

示例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);
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:7,代码来源:MainActivity.java

示例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();
    }
}
 
开发者ID:yangjie127,项目名称:ESSocialSDK-master,代码行数:12,代码来源:SocialOauthActivity.java

示例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);
    }

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

示例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);
        }
    }
 
开发者ID:Jay-Y,项目名称:share,代码行数:7,代码来源:QQUtils.java

示例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);
//        }
    }
 
开发者ID:xujiaji,项目名称:HaiNaBaiChuan,代码行数:10,代码来源:LoginSDKHelper.java

示例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);
}
 
开发者ID:wuyinlei,项目名称:MyHearts,代码行数:10,代码来源:LoginActivity.java

示例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);
}
 
开发者ID:tianyuan168326,项目名称:nono-android,代码行数:10,代码来源:LogOnActivity.java

示例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);
    }

}
 
开发者ID:bangqu,项目名称:eshow-android,代码行数:9,代码来源:LoginActivity.java

示例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);
}
 
开发者ID:bangqu,项目名称:eshow-android,代码行数:9,代码来源:LoginActivity.java

示例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;
    }
}
 
开发者ID:BruceHurrican,项目名称:asstudydemo,代码行数:23,代码来源:QQLoginAndShare.java


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