Skip to content

tuya/tuya-outdoor-android-sdk-sample-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tuya Smart Travel App SDK Sample for Android

English | 中文版


Overview

This sample demonstrates how to build a smart travel app based on Smart Travel App SDK for Android. This SDK supports multiple functional modules, including device management, offline stores, and cycling navigation.

Prerequisites

  • Android Studio Arctic Fox | 2020.3.1 Patch 4 Build #AI-203.7717.56.2031.7935034, built on November 21, 2021

  • Gradle 6.5 or later.

Use the sample

  1. Smart Travel App SDK for Android is integrated based on Gradle. Required resources must be installed.

  2. Clone or download this sample.

  3. This sample requires you to get a pair of keys and a security image from Tuya Developer Platform, and register a developer account on this platform if you do not have one. Then, perform the following steps:

    1. Log in to the Tuya IoT Development Platform. In the left-side navigation pane, choose App > SDK Development.

    2. Click Create to create an app.

    3. Fill in the required information, such as the app name and package name.

    4. You can find the AppKey, AppSecret, and security image on the Get Key tab.

    5. Add SHA256 string according to the help information on the iot platform.

  4. Open the sample project local.properties.

  5. Fill in the AppKey and SecretKey in the local.properties file.

       appKey=your AppKey
       appSecret=your AppSecret
    
  6. Download the security image, rename it t_s.bmp, and then drag it to the assets directory in the app module.

    Note: The package name, AppKey, AppSecret, and security image must be the same as those used for your app on the Tuya IoT Development Platform. Otherwise, API requests in this sample will fail.

References

For more information about Tuya Smart Travel App SDK, see App SDK.

About

This sample demonstrates how to use Tuya outdoor traval Android SDK features in Java.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages