Overview
The SDK described on this page is specifically for Skype, not Skype for Business.
What can I do with it?
Help your users get in contact with you by instant message, video or voice call. Use Skype’s infrastructure to power your communication.
This SDK will allow you to deep link to a call or instant message chat in the Skype app using an Intent, removing the complexity of building URLs for Intents.
Compatibility
Your users will need version 7.11 or higher of the Skype app for the linking to work. Most people will be on the latest version of the Skype app, unless they are on a version of Android lower than 4.0.3. Support for older versions of Android can be found in this guide to Skype system requirements.
Prerequisites
You will need the Skype Name of the person or bot that you want your users to connect with. If you are going to determine the Skype Name programmatically (maybe you want to display more than one link to Skype with different Skype Names) then your app will need to retrieve the relevant Skype Name and pass it to the Intent as a parameter.
API reference
Click here to view the javadocs for the sdk.
Using the Android SDK
- Import the SDK Library via jCenter
- Use SkypeAPI object to invoke actions in the Skype client
1. Importing SDK library
Add this to project-level /app/build.gradle before dependencies
repositories {
jcenter()
}
Add the compile dependency with the latest version of the Skype Mobile SDK in the build.gradle file for your module that uses this sdk:
dependencies {
compile 'com.skype.android.skype-android-sdk:MobileSdk:1.0.0.0'
}
2. Call the api
Details of the API and how to call it are described in the API documentation. The embeddable button will initiate a Skype call to a specific Skype user. To create the button, you need to know their Skype Name. In most cases this will be one that you already manage, if you don’t know your Skype Name, this guide will help you find it.
Usage Example
try {
SkypeApi skypeApi = new SkypeApi(getApplicationContext());
skypeApi.startConversation(skypeIdValue.toString(), Modality.AudioCall);
} catch (SkypeSdkException e) {
// Exception handling logic here
}
3. Style your link
Your link to the Skype app must follow these branding guidelines.
4. Update your Skype privacy settings
You should make sure that the Skype Names that you are using are configured to allow incoming calls and / or messages from anyone. To change your privacy settings, you need to install Skype on a PC or Mac. Read about how to change your settings from Skype for Windows and Skype for Mac.
Note: By default, Skype is setup not to allow instant messages from people that aren’t in your Skype contacts list. If you’re using the SDK for instant messaging, we strongly advise you to change your privacy settings.
Your use of this SDK is subject to the Terms of Use.