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.
-
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.
-
Smart Travel App SDK for Android is integrated based on Gradle. Required resources must be installed.
-
Clone or download this sample.
-
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:
-
Log in to the Tuya IoT Development Platform. In the left-side navigation pane, choose App > SDK Development.
-
Click Create to create an app.
-
Fill in the required information, such as the app name and package name.
-
You can find the AppKey, AppSecret, and security image on the Get Key tab.
-
Add SHA256 string according to the help information on the iot platform.
-
-
Open the sample project
local.properties
. -
Fill in the AppKey and SecretKey in the local.properties file.
appKey=your AppKey appSecret=your AppSecret
-
Download the security image, rename it
t_s.bmp
, and then drag it to theassets
directory in theapp
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.
For more information about Tuya Smart Travel App SDK, see App SDK.