Getting Set Up

Approximate time: 2-10 mins

Note: The current version of our SDK is targeted at Android API Level 28, with compatibility back to API Level 19 (Android 4.4) and is optimized for both phone and tablet.

This guide assumes you have an existing app, and are launching the TallyGoActivity from your own Activity. The implementation here is for demonstration purposes — you might want to take a look at our Reference App if you are new to Android or you would like to get started on more complicated uses of our SDK. Feel free to copy any of the code from our Reference App in order to build your own application.

  1. Sign up for a free TallyGo account to get an SDK Access Token
  2. Add the following to android in your build.gradle :
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
  3. Then add the following to your repositories in your build.gradle :
    repositories {
        maven {
            url "https://tallygo.bintray.com/TallyGoAndroid"
        }
    }
  4. Then add this to your dependencies in your build.gradle :
    implementation('com.tallygo:tallygo-android:2.2.+@aar') {
        transitive = true
    }
  5. Add <meta-data android:name="tallygo.ACCESS_TOKEN" android:value="@string/tallygo_access_token" /> to your <application> tag inside your AndroidManifest.xml file
  6. Initialize the TallyGo SDK with your TallyGo SDK Access Token (sent to you via email, or log in to see it here):
    Add <string name="tallygo_access_token">YOUR_SDK_ACCESS_TOKEN</string> to your strings.xml file

You're ready to roll! Next up: Get Navigation in Your App