SDKs
...
Getting Started
C++

Android support (EXPERIMENTAL)

7min

LicenseSpring provides a C++ SDK built using the Android NDK, designed for Android applications. The SDK is compatible with Android devices running Android API Level 24 (Android 7.0 Nougat) or higher.

  • NDK Version: 27.1.12297006
  • Minimum Android API Level: 24 (Android 7.0 Nougat)
  • ABI version: arm64-v8

The SDK provides native C++ functionality and is optimized for performance on supported Android devices.

Important notes

All these issues will be fixed in the official release.

Hardware ID generation

Hardware ID generation is not supported in the current experimental version. You must set it with LicenseSpring::ExtendedOptions::setHardwareId.

Default license file path

The SDK doesn't have a default file path used for saving the license file, and not setting it manually will crash the program. You must set it with LicenseSpring::ExtendedOptions::setLicenseFilePath

Default logging path

Same as license file path. You must set it with LicenseSpring::BaseManager::setDataLocation.

Code sample

For a Java or Kotlin Android app you need to follow the standard procedure of linking against a C++ library and calling it from managed code.

C++ snippet

C++


CMakeLists.txt

Text


Kotlin snippet



Kotlin




Updated 26 Sep 2024
Doc contributor
Did this page help you?