Issues encountered during the development of Sina Weibo through OAuth certification

Source: Internet
Author: User
Tags oauth

1 Android Networkonmainthreadexception exception

http://blog.csdn.net/mad1989/article/details/25964495

, starting with the Honeycomb SDK (3.0), Google no longer allows related operations such as network requests (HTTP, sockets) directly in the main thread class

If this step is not changed, it will be in Oauth.java.

Of the public Boolean Requestaccesstoken method.
Activity.startactivity (New Intent (Intent.action_view, Uri
. Parse (AuthUrl));
Error

2 oauthcommunicationexception

Appkey and Appsecret errors

To use your new application, if you use someone else's will be wrong

Unable to jump to authorization page

Issues encountered during the development of Sina Weibo through OAuth certification

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.