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