Java Code Examples for com.tencent.connect.common.Constants#REQUEST_LOGIN

The following examples show how to use com.tencent.connect.common.Constants#REQUEST_LOGIN . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LoginActivity.java    From Social with Apache License 2.0 6 votes vote down vote up
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
    if (requestCode == Constants.REQUEST_LOGIN ||
            requestCode == Constants.REQUEST_APPBAR) {
        Tencent.onActivityResultData(requestCode, resultCode, data, loginListener);
    }
    if (requestCode==REQUEST_CODE_SET_ACCOUNT && resultCode==RESULT_OK){
        //登录
        loginWithQQopenid();
    }

    if (requestCode == REQUEST_CODE_REGIST && resultCode ==RESULT_OK){
        SocialMainActivity.startSelf(this);
        finish();
    }

    super.onActivityResult(requestCode, resultCode, data);
}
 
Example 2
Source File: MainActivity.java    From fangzhuishushenqi with Apache License 2.0 5 votes vote down vote up
@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);
}
 
Example 3
Source File: LoginFragment.java    From Social with Apache License 2.0 5 votes vote down vote up
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
    Log.d("QQLogin","回调111111");
    if (requestCode == Constants.REQUEST_LOGIN ||
            requestCode == Constants.REQUEST_APPBAR) {
        Tencent.onActivityResultData(requestCode,resultCode,data,loginListener);
    }
    super.onActivityResult(requestCode, resultCode, data);
}
 
Example 4
Source File: QQPlatform.java    From SocialSdkLibrary with Apache License 2.0 5 votes vote down vote up
@Override
public void onActivityResult(BaseActionActivity activity, 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);
    }
}
 
Example 5
Source File: LoginSDKHelper.java    From HaiNaBaiChuan with Apache License 2.0 5 votes vote down vote up
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);
//        }
    }
 
Example 6
Source File: LoginActivity.java    From MyHearts with Apache License 2.0 5 votes vote down vote up
@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);
}
 
Example 7
Source File: MainActivity.java    From BookReader with Apache License 2.0 5 votes vote down vote up
@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);
}
 
Example 8
Source File: LogOnActivity.java    From nono-android with GNU General Public License v3.0 5 votes vote down vote up
@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);
}
 
Example 9
Source File: SocialOauthActivity.java    From ESSocialSDK with Apache License 2.0 5 votes vote down vote up
@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();
    }
}
 
Example 10
Source File: SsoActivity.java    From ESSocialSDK with Apache License 2.0 5 votes vote down vote up
@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);
    }

}
 
Example 11
Source File: QQAuth.java    From sdk3rd with Apache License 2.0 4 votes vote down vote up
@Override
public void onResult(int requestCode, int resultCode, Intent data) {
    if (requestCode == Constants.REQUEST_LOGIN) {
        Tencent.onActivityResultData(requestCode, resultCode, data, mListener);
    }
}