Cisco Spark Android SDK Example
This demo employs Cisco Spark service through Spark Android SDK.
This demo support Android device with Android 6.0 or later
Table of Contents
Setup
-
Install Java SE Development Kit 7u45 or later (Java 8 is OK)
http://www.oracle.com/technetwork/java/javase/downloads/index.html
-
Android Studio 2.3 or later
https://developer.android.com/sdk/installing/studio.html
-
Android Plugin for Gradle 2.3.3
If you upgrade your gradle plugin newer than 3.0.0, make sure to add google repository and remove retrolambda plugin in your build.gradle file:
allprojects {
repositories {
jcenter()
google()
...
}
}
-
Select tools->Android->SDK Manager in Android Studio, and install the following packages:
- Android SDK Tools
- Android SDK Platform-Tools
- Android SDK Build-Tools (latest)
- Android 7.1.1 (latest)
- Support Repository: Android Support Repository
- Support Repository: ConstraintLayout for Android
- Support Repository: Google Repository
Install
-
Clone or download project to your computer.
git clone https://github.com/ciscospark/spark-android-sdk-example
-
Import project
In Android Studio,open "File" -> "Open", select project.
-
Connect your device with debug enabled
-
Build & Run
Usage
Authorize
Spark ID
If you have a Spark ID (your email address), you can choose "Spark ID" to authorize your device.
Guest ID
If you have a Guest ID (a string token), choose "Guest ID" in the first page, then you need to enter your App JWT token and login.