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.