Android SDK Quick Start Guide

Learn how to quickly integrate and start using the Spyne Android SDK.

Overview

This section shows how to integrate Spyne SDK in your Android app. Before getting started, complete the Android SDK Quick Start Guide. The quick start guide shows how to install the Spyne SDK, click your first shoot, and refer the subject on dashboard.

Install SDK

To use the Spyne Android SDK, please follow the steps required below:

Install using Android Studio and Gradle

Add the Jitpack repository to your project-level build.gradle file at the end of repository

project-level build.gradle
allprojects {
repositories {
google()
mavenCentral()
maven {
url "https://jitpack.io"
credentials { username authToken }
}
}
}

Adding SDK dependency version

Add the dependency to your module-level build.gradle file

module-level build.gradle
dependencies {
implementation 'com.github.gouravspyne:MFCsdk:2.75'
           }

Authenticating the SDK

Add the token to your module-level gradle.properties file

module-level gradle.properties
authToken = jp_fs5s5gl8ur3qohon41oe45k7vi

Initializing the SDK

Initialise the client in your Application sub-class. To generate the API Key and Category Key, please click here

Java
public class SampleApp extends Application {
private static final String API_KEY = "API_KEY"
private static final String CATEGORY_ID = "CATEGORY_ID"
@Override
public void onCreate() {

Spyne.init(context:this, API_KEY, CATEGORY_ID)
}
}
Kotlin
class MyApplication : Application() {
val API_KEY = "API_KEY"
val CATEGORY_ID = "CATEGORY_KEY"

override fun onCreate() {
super.onCreate() {

Spyne.init(context:this, API_KEY, CATEGORY_ID)
}
}

List of Spyne Android Standard SDK Version [Last 5 versions]

Version No.Release DateChanges
8.8108 Aug 2022Bug fixes
8.7905 Aug 2022Bug fixes

Video Tutorial

Watch this video to learn how to integrate Spyne Camera SDK on your Android app.