Android Integrated Sina SDK Development, unable to use web authorization, stop running the workaround

Source: Internet
Author: User

In the use of the Sina SDK, there is this problem, has been thought to be a code problem, but check the Sina SDK demo, found that the code flow is right

Injecting the SDK WebBrowser into the Manifest.xml

<activity android:name= "Com.sina.weibo.sdk.component.WeiboSdkBrowser" android:configchanges= "keyb Oardhidden|orientation "android:exported=" false "android:windowsoftinputmode=" Adjustresize ">< /activity>

The authorization method of the Web is then called in the code

Com.sina.weibo.sdk.auth.AuthInfo AuthInfo = new AuthInfo (this, Constants.app_key, Constants.redirect_url, Constants.scope); Com.sina.weibo.sdk.auth.sso.SsoHandler Ssohandler = new Ssohandle  R (Loginweiboactivity.this,authinfo); Ssohandler.authorizeweb (new Authlistener ()); Authlistener is the callback interface of the SDK

Everything is in accordance with the process, but there is the issue of Web Licensing FC, has not found the root of where.

Today in the project engineering of the class library to organize, suddenly found that can not act, out of the wrong. Since I was using a class library reference to the WEBISDK project, I now refer to Weibosdkcore.jar and Weibosdk.jar instead. Eclipse prompts to say that a class under Dex cannot be executed.

So I think, this should be compiled after the class did not get a reasonable update, so I put the bin/under the delete to recompile.

Unexpectedly, eclipse could not compile and re-save the static class and interface->static automatic reference updates.

After modifying all the error prompts, run Android application. The Web authorization was successfully run.


Android Integrated Sina SDK Development, unable to use web authorization, stop running the workaround

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.