QQ and Qzone share callback failures and successful multiple issues for sharing successful callbacks

Source: Internet
Author: User

One, QQ and Qzone share callback failed

At first, I follow the official instructions to configure, all can be callback, later version of the update after the inexplicable callback does not come back, so I went to find the QQ and Qzone related issues, found that it is a few years to mention, said the callback is unsuccessful.

Later, carefully to compare the version of the changes to update the contents of the original Androidmanifest.xml file is found in the exported attribute.

if the service, etc. Androidmanifest declared as android:exported= "false"
The service cannot be used across processes.
Permission denied!
Need to change to:android:exported= "true"

Therefore, if you find yourself behaving in accordance with the official documentation, there are still problems, so please check your configuration file. If there is a supplement, please reply in time, thank you!

Second, we also give you to share the module's callback function as long as the point of sending, whether or not to share the success will be callback to share the completed OnComplete (Object response) function.

The official case is this, adding Intent in protected void onactivityresult (int requestcode, int resultcode, tencent.onactivityresult data) functions (Requestcode, ResultCode, data); This is incomplete and requires conditional judgment .

//QQ and Qzone share callback
if (Requestcode = = Constants.request_qq_share | | requestcode = = constants.request_qzone_share) {
Mtencent.onactivityresult (Requestcode, ResultCode, data);
  }


This article is from the "Vivian Son" blog, please be sure to keep this source http://9550674.blog.51cto.com/9540674/1831711

QQ and Qzone share callback failures and successful multiple issues for sharing successful callbacks

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.