SHARESDK official has provided the Android Quick Integration tutorial, with the official tutorial for reference, this article focuses on the problems encountered in integration.
Android Quick Integration Official tutorial: Http://wiki.mob.com/Android_ Quick Integration Guide/
1, registered SHARESDK official developer account, get Appkey, only get Appkey can call SHARESDK API;
2, set up the Download SDK, here tick you need to share to the platform, uncheck the platform will not be downloaded down;
3. Click "Download SDK" to download the customized SDK compression package;
4, unzip the SDK file just downloaded, open the "Sharesdk for Android" directory, Run "Quickintegrater.jar" (believe that the Android environment can directly run the jar, there is not much to say);
5, Quickintegrater.jar after running, set the correct project name and project package name:
Note: These two parameters many people do not know how to set, in fact very simple.
The project name corresponds to the generated directory name, if set to Zht, a zht directory is generated, and the files in this directory are the files for subsequent import of the project;
The project package name is the namespace for your project, as my project is Cn.zh, and the automatically generated Wxentryactivity.java is under this namespace;
6. Copy the four directories generated by Quickintegrater.jar to the corresponding directory of your project;
Note: The corresponding copy is good, nothing complicated, but the official description here is not clear;
7, in the Androidmanifest.xml file, add permissions, add activity information (copy the official document code is OK);
8, open the copy to your project assets directory Sharesdk.xml file, modify <sharesdk AppKey = "androidv1101"/> In the AppKey for the first step to apply;
Note: About the Sharesdk.xml file in the sharing platform of the Appkey whether the need to apply for a question, the official answer is: The proposed application of the platform, and modify the corresponding Appkey;
If you use the default Appkey, the call to the SDK is not affected, but it is the SHARESDK address when the link is displayed.
Record, for the better of myself!
Sharesdk Getting Started: Android 10-minute fast integration