With LT SDK, you can build your own customized application with Call and IM function. This documentary provides a guideline that demonstrates how to build and configure an in-app message and call using LT SDK.
This section explains the steps you need to take before testing the Android sample app.
To use our Android sample, you should first install LTSample for Android 1.0.0 or higher.
Sample | Android | Java | Gradle |
---|---|---|---|
LTSample | 5.0 (API level 21) or higher | 7 or higher | 3.5.3 or higher |
- You can clone the project from the LTSample repository.
// Clone this repository
git clone [email protected]:LoFTechs/LTSample-Android-Java.git
// Move to the LT sample
cd LTSample-Android-Java/
- Set Develop api data and password to project level
gradle.properties
file:
Brand_ID="<YOUR_BRAND_ID>"
Auth_API="<YOUR_AUTH_API>"
LTSDK_API="<YOUR_LTSDK_API>"
LTSDK_TurnKey="<YOUR_LTSDK_TURNKEY>"
Developer_Account="<YOUR_DEVELOPER_ACCOUNT>"
Developer_Password="<YOUR_DEVELOPER_PASSWORD>"
License_Key="<YOUR_LINCENSE_KEY>"
With LT SDK, you can build your own customized application with Call and IM function. Refer DOC
Step 1. Add MavenCentral to your repositories in your project level build.gradle file:
allprojects {
repositories {
mavenCentral()
}
}
Step 2. Add the library as a dependency in your module level build.gradle file:
def LTSDK_version = "x.y.z"
implementation "com.loftechs.sdk:lt:$LTSDK_version"
implementation "com.loftechs.sdk:im:$LTSDK_version"
implementation "com.loftechs.sdk:call:$LTSDK_version"
Step 3. Grant system permissions in your module level AndroidManifest.xml file:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />