Android Sina Blog sharing problem summary

Source: Internet
Author: User

Summary of many bugs encountered in Weibo Development

I encountered a BUG (1): sso package or singn error

This problem occurs because I did not enter the correct package name and MD5 Signature in my blog.

Use the MD5 Signature generator in the official compressed package. Enter the package name of your application to get your signature.

Bug (2): SSO login authorization code cannot enter the onComplete () method of AuthListener class

The cause of this bug is that onActivityResult () is not added ()

As follows:

/*** This function is called when the SSO authorization Activity exits. ** @ See {@ link Activity # onActivityResult} */@ Override protected void onActivityResult (int requestCode, int resultCode, Intent data) {super. onActivityResult (requestCode, resultCode, data); // SSO authorization callback // important: onActivityResult if (mSsoHandler! = Null) {mSsoHandler. authorizeCallBack (requestCode, resultCode, data );}}
BUG (3): no permission added
    
     
     
     
 


BUG (4): Different callback addresses
// Create a Weibo instance mWeiboAuth = new WeiboAuth (this, Constants. APP_KEY, Constants. REDIRECT_URL, Constants. SCOPE );

The Constants. REDIRECT_URL callback address must be the same as that set for Sina Weibo online applications.

I would like to sum up one sentence for myself: to do things, please sink your mind and do not use it rashly and solve it in a timely manner.

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.