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