Add SDK to a Project

The Live Sense SDK is provided as a ready-to-use Android library module with few example projects.

Obtain the SDK

To obtain the Live Sense SDK for Android, follow these steps:

  1. Register on https://here-tech.skawa.fun for a 'Pro' account.
  2. Login and click on the project name to navigate to the project dashboard.
  3. Navigate to the section for HERE LIVE SENSE SDK FOR ANDROID and click Generate App ID and App Code to obtain your app credentials and the SDK download link.
  4. Follow the link to download the livesense module and examples as a Zip package.

To add the SDK to a project, follow these steps:

  1. Create/open an Android phone/tablet application project.
  2. Ensure the minimum API Level is set to 24 or greater.
  3. Add the livesense module to your project.

    • If using Android Studio, the module can be imported by following these steps:
      1. Open the import module dialog via File > New > Import Module.
      2. Select the extracted livesense folder.
    • Otherwise add the module manually by following these steps:

      1. Place the livesense folder into the root folder of your project.
      2. Add :livesense to your settings.gradle file.

         include ':app', ':livesense'
        

Note

When updating the SDK, you should re-import or copy the whole module contents, not just the AAR, to capture all changes for the new version.
If you have modified the module files, you may have to re-apply your changes or manually update those files.

  1. Update your app's build.gradle as follows:

     android {
        compileOptions {
            sourceCompatibility JavaVersion.VERSION_1_8
            targetCompatibility JavaVersion.VERSION_1_8
        }
     }
     dependencies {
        implementation project(":livesense")
     }
    
  2. Use the License Key, APP ID, and APP SECRET to authenticate your application.

results matching ""

    No results matching ""