Need help with ThirdPartyLoginDemo?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

122 Stars 93 Forks MIT License 10 Commits 3 Opened issues

Services available


Need anything else?

Contributors list

ShareSDK for Android

  • website --
  • wiki --
  • bbs --

Step One: Download the SDK

Visit our official website and download the latest version of ShareSDK. After extracting the downloaded file, you will find the following directory structure:

directory structure

Open the ShareSDK for Android directory, you will find MainLibs and OnekeyShare. ShareSDK is stored in the MainLibs directory, and OnekeyShare is a GUI tool for developers to quickly complete the share feature by ShareSDK.

Step Two: Import ShareSDK to Your Project

There are two ways to import ShareSDK into your project: reference to the ShareSDK project or copy the jars and resources into your project. If you select the second way, we provide the following tool to help you quickly finish these operations:

quick integrating tool

Execute this tool and copy its products into your project.

ShareSDK encourage you integrate ShareSDK by referencing its project, because this will be much simpler. Here are the steps:

(1) Copy the extracted SDK into your workspace of Eclipse

(2) Import the SDK projects:

projects of ShareSDK

Select MainLibs and OnekeyShare

select lib-projects

(3) Change dependency of your project to OnekeyShare (if you need this GUI tool) or MainLibs

change dependency

Step Three: Add Applications Information

There are three ways to add your applications information into ShareSDK: register on the application console of ShareSDK, configurate the “assets/ShareSDK.xml” file, or modify by ShareSDK.setPlatformDevInfo(String, HashMap) method at runtime.

Here is the example of “assets/ShareSDK.xml” way:

All applications information is registered in the “assets/ShareSDK.xml” of ShareSDK Sample project.

Step Four: Configurate AndroidManifest.xml

Add the following permissions into your AndroidMenifest.xml:

You should add the intent-filter in your launchActivity if you want to use the KakaoTalk to share msg. <!-- If you share msg in KakaoTalk, your share-params of executeUrl should set the value "kakaoTalkTest://starActivity" So it do, when the user to click the share-msg, then startActivity of your app's launch-activity. When you use the lib of onekeyshare, you can use the method of setExecuteUrl("kakaoTalkTest://starActivity") to set executeUrl. --> ```

And the single Activity for GUIs of ShareSDK:

If you integrate Wechat, add this callback activity:

And if you integrate Yixin, add this callback activity:

Step Five: Add Codes

Add the following line in the onCreate method of the entrance activity:


And add the following line int the onDestroy method of the last activity:



logo grid view of onekeyshare edit page of onekeyshare image preview authorizes

And the Next

For more information about how to integrate ShareSDK or how use ShareSDK to get your friends list, following someone, share statuses, etc. please visit our official wiki.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.