Third party QQ Login not callback (Android)

Source: Internet
Author: User

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)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.