This document is deprecated, please go to Tuya Developer Documentation Center to view the latest version: Tuya Smart Doc - Android SDK

1. Integrate SDK

1.1. Fast Integration

IPC SDK is based on Tuya Smart Home SDK, please learn about Preparation for Integration and complete the integration of the Home SDK.

1.1.1. Configure the build.gradle

Add the following codes to the app build.gradle file.

defaultConfig {
   ndk {
       abiFilters "armeabi-v7a","arm64-v8a"
dependencies {
   implementation ''
   implementation ''
   implementation ''
   implementation ''


  1. Tuya smart IPC sdk solely supports the platform of armeabi-v7a,arm64-v8a
  2. By default, SDK no longer supports P2P 1.0 devices (p2ptype = 1). If you need to use them, please add dependencies: implementation ''

1.1.2. Set the AndroidManifest.xml

Configure corresponding permissions in the AndroidManifest.xml file.

<!-- sdcard -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<!-- Network -->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />

1.1.3. Proguard-rules

Arrange aliasing configuration in corresponding files.

-keep class com.tuyasmart.**{*;}
-dontwarn com.tuyasmart.**

support P2P 1.0 devices (p2ptype = 1) , also need to config following rules:

-keep class com.tutk.**{*;}

-dontwarn com.tutk.**

Demo App

Home SDK Demo App contains the control panel module of the IPC device.

  • Live video panel: The p2p connection process of IPC device, live video, memory card recording, screenshots, intercom and other functions.
  • Playback panel: The acquisition and playback of video clips in the device memory card, the use of timeline components.
  • Cloud storage panel: Cloud storage service activation, status judgment, cloud storage video and cloud storage event acquisition and playback.
  • Message panel: Acquisition and display of detect message.
  • Setting panel: Use of IPC device standard dp points.

results matching ""

    No results matching ""