Android integrated Sina Weibo sharing and authorization (on)

Source: Internet
Author: User

Android Sina Weibo share and license

In the development encountered a variety of pits .... So share the hope that we can contribute some experience

The development environment used in this article is the eclipse

The content of Sina Weibo sharing and its authorization in this article is divided into two pieces:

Weibosdkdemo provided by a new wave

Second, embed it in your own application.

The first part runs successfully weibosdkdemo

Download the SDK for Sina Weibo

First go to Sina Open platform: http://open.weibo.com/ Register, login

Select the mobile app on the page to find the Android SDK documentation Download Http://open.weibo.com/wiki/SDK#Android_SDK

Unzip after download:

The first step is to put Eclipse's signature on

Click "Windows==>preferences==>android==>build" in Eclipse

Select the Debug.keystore in the demo in the custom debug KeyStore

Click Browse ... Choose

Then everyone will import the demo into eclipse

Run Weibosdkdemo to the phone out of the inside

You can use it.

The second part begins with a walkthrough of embedding into your own application.

will download the compressed package in the app_signatures.apk installed into the phone inside

The installed application name is:

MD5 Signature Generator

Enter the package name of your application after installing the app

The package in Androidmanifest.xml

For example:

Like my app package name is Com.example.framework

Generate MD5 signature in MD5 signature generator

Submit the "Android app package name" and "MD5 signature" in the app for Sina Weibo

The location of the submission is in:

After registering the app in Sina Weibo open platform

Manage Apps Click Application Information ==> basic information

Such as:

Location 1th, fill in the Android app package name

Position number 2nd fills in the MD5 encrypted string

Fill in Location 3rd if you don't have one.

Now you can share it with the examples in Weibosdkdemo or auth certification.

The specific share will be summarized in the next chapter

I hope you will be useful to everyone happy every day

Daily Diligence Thank you

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.