TrillBit SDK
  • Introduction
  • technological overview
    • In this release
    • Use cases
    • Quick links
  • features
    • Payloads and Datarates
    • Protocols
    • Configurations
    • Distances
    • Platforms supported
  • demo applications
    • TrillPlay
      • Specifications
    • TrillIoT
    • Knowles SmartMic
  • Knowles smartmic support
    • Trill SDK for Knowles
      • Requirements
      • Setup Guide
        • Licensing and Setting up Trillbit Host library
        • Authentication of the Trillbit IA61x algorithm
        • Sending Data to the SmartMic
      • Trillbit SDK Methods
      • Troubleshooting
  • android support
    • Trill SDK for Android
      • SDK Requirements
      • Setup Guide
        • Licensing credentials
        • Getting started
        • Integrating the SDK
          • Declare your app's audio permissions
          • Import SDK
          • Declare Trill SDK Callback
          • License and Initialise your Trill SDK
      • Methods and Callbacks
        • Sender methods
        • Receiver methods
        • Callbacks
      • Reducing application size
      • Troubleshooting
        • Error codes
  • ios support
    • Trill SDK for iOS
      • SDK Requirements
      • Setup Guide
        • Licensing Trill SDK
        • Getting started
      • Methods and Callbacks
        • Trill SDK Methods
        • Trill SDK Callbacks and delegates
      • Troubleshooting
  • esp 32 support
    • Trill SDK for ESP-32
      • Requirements
      • Platforms supported
      • Setup Guide
        • Licensing and Setting up Trillbit library
        • Sending data to the ESP32 device
      • Methods and Callbacks
      • Troubleshooting
  • embedded linux
    • Trill SDK for Embedded linux
      • Requirements
      • Architectures supported
      • Demo applications
      • Setup Guide
        • Licensing your Trill SDK
        • Compiling example binaries
        • Instantiate Trill SDK
        • Run the demo code
      • Methods and Callbacks
        • Trill SDK Methods
        • Callbacks
      • Troubleshooting
  • Reference
    • References
    • FAQs
Powered by GitBook
On this page
  1. android support
  2. Trill SDK for Android
  3. Setup Guide
  4. Integrating the SDK

License and Initialise your Trill SDK

Get TrillSDK instance and initialise TrillSDK using the SDK key and callback declared previously.

For Licensing the TrillBit SDK for your application, follow these steps:

  1. Declare SDK_KEY, as show below.

  2. Replace SDK_KEY_FROM_TRILL_DEV_PORTAL with the Key displayed on your TrillBit developer portal dashboard(Android).

String SDK_KEY = "SDK_KEY_FROM_TRILL_DEV_PORTAL";

Make sure SDK is initialised after permission block.

TrillSDK trillSDK = TrillSDK.getSdkInstance();
trillSDK.initialise(SDK_KEY, Context, Callback)

User will receive the OnSDKReady callback once the SDK is initialised.

Ensure that the Sending and receiving methods are called only after the onSDKReady is received.

The first time app is initialised, SDK makes a call to the TrillService to register your device. Network connection is required by TrillSDK to make this api call only during this call. After this, your SDK is ready to be used for sending and receiving data.

PreviousDeclare Trill SDK CallbackNextMethods and Callbacks

Last updated 2 years ago