When you see this problem I assume you have encountered a problem with QQ login not callback on Android and the code is consistent with official documents
(In this case, look closely at the sample code in the SDK to find the official documentation and SDK sample code discrepancies)
On the code:
private void Onqqloginclick () {//The logic here is the same as the official document Tencent = Tencent.createinstance (config.qq_app_id, this); if (!tencent.issessionvalid ()) {Tencentloginlistener = new Iuilistener () {@Override public void OnComplete (Object o) {org.json.JSONObject obj = (org.json.JSONObject) o; LOG.I (TAG, "#onComplete" + obj); } @Override public void OnError (Uierror uierror) {log.i (TAG, "#onError" + UIERROR.E Rrormessage); } @Override public void OnCancel () {log.i (TAG, "#onCancel Cancel"); } }; Tencent.login (This, "all", Tencentloginlistener); }} @Overrideprotected void Onactivityresult (int requestcode, int resultcode, Intent data) {//official documents No, no, no, no, no, no, no, no, no, no, no. Very very important, otherwise it will not be recalled! Tencent.onactivityresultdata (Requestcode, ResultCode, data, Tencentloginlistener); if (Requestcode = = Constants.request_api) {if (ResultCode = = Constants.result_login) {tencent.handleresultdata (data, Tencentloginlistener); } }}
Look at the code comment. SDK source code has called Tencent.onactivityresultdata ()
Hang Daddy! Horizontal slot
#SEO plus a few key words for easy retrieval
Android QQ Login not callback android_sdk_v2.9.3 Open_sdk_r5276_lite.jar
Opensdk_log. Uilistenermanager Getlistner Action is null! Rquestcod=11101
Third party QQ Login not callback (Android)