Integrate Sina Weibo sharing and authorization for Android (I)

Source: Internet
Author: User

Share and authorize Android Sina Weibo

I encountered various pitfalls in development... so I 'd like to share some of my experiences with you.

The Development Environment used in this article is eclipse

The content of Sina Weibo shares and authorization described in this article is divided into two parts:

I. WeiboSDKDemo provided by Sina

2. Embed it into your own applications.

Part 1: WeiboSDKDemo

Download Sina Weibo SDK

Go to Sina Open Platform: http://open.weibo.com/registration, Login

SelectMobile applicationsFind the Android SDK documentation download http://open.weibo.com/wiki/SDK#Android_SDK on the page

Decompress the downloaded package:

The first step is to replace the eclipse signature

In eclipse, click "Windows ==> Preferences ==> export Android ==> export Build"

Select debug. keystore in Demo in Custom debug keystore

Click Browse... select

Then, import the demo to eclipse.

Run WeiboSDKDemo to your mobile phone.

You can use it.

The second part describes how to embed data into your own applications.

Install the app_signatures.apk In the downloaded package into your mobile phone.

The name of the installed application is:

MD5 Signature Generator

EnterPackage name of your application

Package in AndroidManifest. xml

For example:

For example, my application package name is com. example. framework.

Generate an MD5 Signature in the MD5 Signature Generator

Submit "android app package name" and "MD5 Signature" to the Sina Weibo app

The submission location is:

After the application is registered on the Sina Weibo open platform

Manage applicationsClickApplication Information ==> Basic Information

For example:

Enter the android app package name in location 1

Enter the MD5 encrypted string in location 2

Enter location 3 if not.

Now, you can share or authenticate the SDK Based on the WeiboSDKDemo example.

The specific sharing will be summarized in the next article

I hope it will be useful to everyone and wish everyone a happy day.

Daily improvement 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.