SDK Development Package Introduction

1.1 Development Resources File Structure

├── apk   --- Test APK
      ├── app  --- Yidong Health test APK, recommended to download from app store
      ├── tool --- Watch testing tool, used for testing watch functions
├── code  --- Reference Demo source code storage
      ├── app  --- Yidong Health open source code
      ├── tool --- Watch testing tool open source code
├── doc   --- Development documentation
      ├── Jieli Health SDK(Android) Development Guide
      ├── Jieli OTA External Library(Android) Development Document
      ├── Jieli Connection Library(Android) Development Document
├── libs  --- Related libraries
      ├── ALi
           ├── AliAgent-release-4.3.7-202408021708.aar         --- Alipay activation library
      ├── JL
          ├── ui
              ├── jl_dialog_V1.3.0_10300-debug.aar            --- Jieli dialog style
              ├── jl_health_http_V1.4.0_10311-release.aar     --- Jieli health server related
              ├── jl-component-lib_V1.4.0_10400-release.aar   --- Jieli utility class
          ├── jldecryption_v0.4-release.aar                   --- Encryption related
          ├── jl_bluetooth_connect_V2.0.0_10703-release.aar   --- Bluetooth connection related
          ├── jl_bt_ota_V1.11.0_11015-release.aar             --- Jieli OTA related
          ├── jl_rcsp_V0.8.0_705-release.aar                  --- Basic protocol related
          ├── JL_Watch_V1.14.0_11307-release.aar              --- Jieli health related
          ├── BmpConvert_V1.6.0_10605-release.aar             --- Image conversion related
          ├── GifConvert_V1.3.0_42-release.aar                --- GIF conversion related
          ├── jl_audio_decode_V2.1.0_20012-release.aar        --- Opus and Speex audio decoding related
 ├── Jieli_Health_SDK_Android_Releases.pdf                     --- Jieli Health SDK release records
 └── ReadMe.txt

1.2 Example Project Structure

com
└── jieli
      └──healthaide     --- Package name
            └── data    --- Data layer
                  ├── dao     --- Database operations
                  ├── db      --- Database management
                  ├── entity  --- Database tables
                  ├── vo      --- Health data parser (V0 version)
            ├── tool    --- Function auxiliary layer
                  ├── aiui          --- AI cloud service
                  ├── bluetooth     --- Bluetooth connection management
                  ├── config        --- Configuration
                  ├── customdial    --- Custom dial background
                  ├── history       --- History record management
                  ├── http          --- Third-party HTTP interface
                  ├── iot           --- Alibaba IOT
                  ├── net           --- Network monitoring
                  ├── notification  --- Notification information
                  ├── permission    --- Permissions
                  ├── phone         --- Phone status
                  ├── ring          --- Ringtone operation management
                  ├── test          --- Test functions
                  ├── unit          --- Unit management
                  ├── upgrade       --- OTA function implementation
                  ├── watch         --- Health operation implementation (dial operations, health data, status synchronization, etc.)
            ├── ui     --- UI layer
                  ├── base         --- UI base class
                  ├── device       --- Device operation UI
                        ├── adapter    --- Adapter
                        ├── add        --- Add device
                        ├── alarm      --- Alarm management
                        ├── aicloud    --- AI cloud service
                        ├── bean       --- Data model
                        ├── contact    --- Contact management
                        ├── file       --- File browsing
                        ├── health     --- Health settings
                        ├── more       --- More functions
                        ├── music      --- Music file transfer
                        ├── nfc        --- NFC function
                        ├── upgrade    --- OTA upgrade
                        ├── util       --- Utilities
                        └── Fragments  --- Interface
                  ├── dialog        --- Popup dialogs
                  ├── health        --- Health data statistics
                  ├── home          --- Main interface
                  ├── login         --- Login function
                  ├── mine          --- My interface
                  ├── service       --- Services
                  ├── sports        --- Sports interface
                  ├── test          --- Test functions
                  ├── widget        --- Custom controls
                  └── Activitys     --- Interface
            ├── util   --- Utility layer
            └── Application  --- Application layer

1.3 Function Implementation Reference

Important

  1. Bluetooth connection implementation can refer to com.jieli.healthaide.tool.bluetooth.BluetoothHelper

  2. Health operation implementation can refer to com.jieli.healthaide.tool.watch.WatchManager

  3. OTA function implementation can refer to com.jieli.healthaide.tool.upgrade.OTAManager

  4. Test functions can refer to unit test examples in the test package

1.3.1 Reference Example Code

test package path: Project root directory\app\src\test\java\com\jieli\healthaide\

../_images/WatchManager_import_code.png


Class Name

Function Description

BleUseOtherUuidDemo

Example of how to use other UUIDs with Jieli Bluetooth connection library


WatchManagerTest

Example of Jieli Health SDK integration, initialization, etc.

WatchDemo

Examples of watch exception handling, dial operations, resource updates, etc.

WatchConfigureDemo

Watch configuration example

BmpConvertDemo

Image conversion algorithm example


FileManagerDemo

File operation examples: file browsing, deletion, large file transfer, formatting, etc.

SmallFileDemo

Small file transfer example

HealthFileSyncDemo

Health record synchronization example (application of small file transfer)

ContactsDemo

Contact synchronization example (application of small file transfer)


HealthDemo

Health data reading example

DeviceSettingDemo

Device setting example


SportsDemo

Sports function example


WeatherSyncDemo

Weather synchronization example

SyncMessageDemo

Message synchronization example


RecordDemo

Recording function example

BigDataTransferDemo

Big data transfer example

AICloudServerDemo

AI cloud service example

AIDialDemo

AI dial example


ESimDemo

eSim card function example

NetworkOTADemo

4G module upgrade function example


AlarmDemo

Alarm function example

SearchPhoneDemo

Find phone/device example


CustomCommandDemo

Custom command example