GithubHelp home page GithubHelp logo

go-life / gofit_sdk_android Goto Github PK

View Code? Open in Web Editor NEW
35.0 9.0 16.0 1.03 MB

GoFIT SDK for Android — GOLiFE 手環 App 介接 SDK

Home Page: https://www.goyourlife.com

License: Apache License 2.0

Java 100.00%
golife smartband ble bluetooth java android app sdk wearable wearable-devices

gofit_sdk_android's Introduction

GOLiFE Logo

GoFIT SDK for Android — GOLiFE 手環 App 介接 SDK

License

此為 GOLiFE 釋出之官方 Android App SDK (Community Edition).

讓任何人都可以藉由本 SDK,直接拿 GOLiFE 市售手環 就可以連接、取資料。

(尋找 iOS 版嗎? 請到 此處)

What's This?

  • Android App 的開發人員,可藉由本 SDK 的整合,便可輕輕鬆鬆快速完成開發。
  • 並且,即刻就可直接與市面上 GOLiFE 出品銷售之 GOLiFE Care 系列手環 裝置連接。達成包括連線、配對、同步、設定等等各項功能。
  • 使用範例 : 官方版 GOLiFE's GoFIT App (Google Play 下載).

從哪開始??

  1. 請到 Release 區 下載 : 包括 Demo App 的 source code (壓縮檔) 與 SDK library (.aar)

  2. 再請到 GoFIT SDK 申請表 申請試用憑證

    • 請不用擔心,僅是請您留個聯絡方式,只需填寫 email 或電話大名等等,然後選擇您要搭配使用的裝置即可。我們收到後便會馬上回覆 30 天的試用憑證給您~
    • 請參見我們的 定價方案。如果您有意用於 商業用途或是客製合作,請您在申請表上註明,或歡迎您來信 聯繫我們
  3. 將收到的憑證,整合進您的 App 內 ⇒ 請參考我們的 Wiki : Demo App (SDK 的安裝與 compile)

  4. Then you are good to go!!! 😁 就是這麼簡單~

    • (當然囉,您手邊必須要先有一台我們的裝置 😝 — GOLiFE 手環)
    • 還有,首次啟動,會對您收到的憑證做驗證,並下載授權 ⇒ 所以,首次啟動請要連網喔!!!~

請參見我們的 定價方案商業用途或是客製合作,都非常歡迎您來信 聯繫我們

Demo App

請參考我們的 Wiki : Demo App (SDK 的安裝與 compile)

API SPEC

請參考我們的 Wiki : API SPEC

SDK 支援之 features

Care 系列手環

Care Care-X Care-X HR Care Xc Care Xe
訊息通知
基本資料輸入
步數目標
公英制
12/24 時制
左右手
抬手點亮
久坐提醒
防丟提示
勿擾模式
心率定時偵測
心率警示
尋找手環
尋找手機
遙控拍照
螢幕鎖
鬧鐘
  • 30 組
  • 30 組
  • 30 組
  • 30 組
  • 30 組
自動睡眠偵測
可同步項目
  • 步數
  • 睡眠
  • 步數
  • 睡眠
  • 步數
  • 睡眠
  • 心率
  • 血氧
  • 步數
  • 睡眠
  • 心率
  • 步數
  • 睡眠
  • 心率

有任何疑問嗎?

歡迎您到 Issues 區 留言~ 我們會第一時間回答您。

Copyright and License

此為 Community Edition.

智慧財產權為 GOLiFE 所有。

© 2018 GOYOURLIFE INC.

http://www.goyourlife.com

GoFIT SDK

gofit_sdk_android's People

Contributors

golife-sysop avatar jethrolee avatar robbinsisbatman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gofit_sdk_android's Issues

v1.4_2018-11-28 is now available!!

Dear Developers,

We managed to release the v1.4_2018-11-28 version. This release adds support new features such as find phone, find smart-band, incoming message notifications, and remote shutters (release notes here).

Kindly check it~

Many thanks.

-- GOLiFE GoFIT SDK Team.

使用doScanDevicec函數,會一直跳出要求權限對話框。

使用doScanDevice函數,會一直跳出要求權限對話框,即使已經給予該App位置權限。
不知道是否該SDK可以設定不用去檢查位置權限,因為本身所開發的App已經會檢查了,且沒有一直跳出要求位置權限對話框的問題。
gofit_location_permission

SDK init Error : Missing `certificate`

當我使用GoFITSdk.getInstance時出現Missing certificate的錯誤
image
也已經將收到的驗證文件更名並放到我創建project的assets資料夾裡
想請問還有哪些可能導致這個錯誤的原因
謝謝

Problems for using Android Demo with Care 3

  1. I buy Care 3 from https://item.jd.com/6316412.html
    From instructions in https://www.goyourlife.com/zh-TW/golifecare3/
    The charging method is different with mine. For "Care 3" I buy from JD, it still needs extra line to charge. So which type of my "Care 3"? Where can I find the device info, for example, device Model.

  2. I apply SDK certification for "Care Xe", "Care-X HR" and "Care-X".
    I use the "Care 3" devices to test android demo. However, "Scan Device" always show "Device not found". I use "GoFIT app", I also cannot scan any device. But I use "WearHealth app", I can connect to my device.
    What's the problem?

  3. If my device is confirmed to be "Care 3", Which smart devices should I choose in
    https://docs.google.com/forms/d/1WutpWDV6VlGUhq2RZs2takjcGKHctG2GYfNQr81CA-0/viewform?edit_requested=true
    There is no Care 3, Should I choose "Care" ??

关于GoWatch的SDK适配性

您好:我想制作的app需要用到心率以外的GPS信息。我想问一下SDK能不能和贵公司的GoWatch产品连接,并获取它的GPS信息?

v1.3_2018-09-19 is now available!!

Dear Developers,

We fixed some malfunctions regarding certain smart band devices (mainly the GOLiFE Care-X HR, Care-X, and Care) and release the v1.3_2018-09-19 version (release notes here).

Kindly check it~

Many thanks.

-- GOLiFE GoFIT SDK Team.

請問如何取得即時健康數據

您好,想請教一下想要取得即時的健康數據,程式碼該怎麼寫
只需要即時的步數、睡眠、心率、血氧。
另外就是我使用TableSleepRecord裡的方法時程式都會直接發生錯誤,不知道問題是出在哪
下面是我目前寫的樣子,再麻煩專員解惑了
githubissue

在自己專案的資料同步

我把demo code中sync 的部分 結合到我自己的專案 會出現error code 700 想知道這部分的錯誤是出在哪個環節ˊˋ

關於安卓導入程式的時候發生問題

A problem occurred configuring project ':app'.

Failed to notify project evaluation listener.
'org.gradle.api.file.RegularFileProperty org.gradle.api.file.ProjectLayout.fileProperty(org.gradle.api.provider.Provider)'

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights
    圖片網址: https://imgur.com/a/D0uy5vP

心跳數據取得

請問 Care-X HR SDK 中,取得心跳數據資料,是即時取得嗎?

鬧鐘功能

想請問這個手環是否有鬧鐘功能?若有是如何呈現的,以及這個SDK的鬧鐘code該如何使用?

doSyncFitnessData ANR

虽然可以调用doSyncFitnessData获取手环数据,但基本上每次都会导致APP卡死出现ANR的问题,怎么解决

突然掃描不到裝置

您好,我用GoFIT-SDK-Demo的Scan Device功能突然就掃描不到裝置(Care-X HR),用自己的iphone手機裡面的GoFIT也是連線不了裝置,不知道是不是手環的藍芽有問題?
我也試過手環接充電然後按一下右側按鈕,等2秒後,出現電池圖案,來reset,但還是掃描不到。
想請問這樣該怎麼解決,是手環出問題了嗎?

請問一下可不可以取得手環中顯示的總步數?

在文件中的 getSteps
public class TableStepRecord {
public Date getTimestamp() // Unix Time, i.e., number of milliseconds that have elapsed since 00:00:00 UTC time, 1 January 1970
public int getSteps()
public int getCalories()
public int getDistance()
}
就我們的理解以及應用時,這是手環一段時間內的步數,而非手環顯示的總步數

運行 SDK init 閃退

2019-11-14 11:35:10.270 28039-28039/com.goyourlife.gofit_demo E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.goyourlife.gofit_demo, PID: 28039
    java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.goyourlife.gofit_demo-QvMKe1iKCCsuyHsONcvn_A==/base.apk"],nativeLibraryDirectories=[/data/app/com.goyourlife.gofit_demo-QvMKe1iKCCsuyHsONcvn_A==/lib/arm64, /system/lib64]]] couldn't find "libsdk-lib.so"
        at java.lang.Runtime.loadLibrary0(Runtime.java:1012)
        at java.lang.System.loadLibrary(System.java:1669)
        at com.goyourlife.gofitsdk.GoFITSdk.<clinit>(GoFITSdk.java:53)
        at com.goyourlife.gofitsdk.GoFITSdk.getInstance(Unknown Source:0)
        at com.goyourlife.gofit_demo.MainActivity.onPreferenceClick(MainActivity.java:228)
        at android.preference.Preference.performClick(Preference.java:1250)
        at android.preference.PreferenceScreen.onItemClick(PreferenceScreen.java:262)
        at android.widget.AdapterView.performItemClick(AdapterView.java:362)
        at android.widget.AbsListView.performItemClick(AbsListView.java:1689)
        at android.widget.AbsListView$PerformClick.run(AbsListView.java:4130)
        at android.widget.AbsListView$7.run(AbsListView.java:6612)
        at android.os.Handler.handleCallback(Handler.java:873)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:214)
        at android.app.ActivityThread.main(ActivityThread.java:7037)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)

是否支援讓手環震動?

我們正在尋求手環SDK,允許推送提醒,讓使用者及時查看手機上的訊息,貴司SDK是否支援此功能?感謝!

doSyncFitnessData onFailure: bind service timeout

你好,
我在使用doSyncFitnessData的api時出現onFailure: bind service timeout的錯誤errorCode=700
程式跟手環也有正常的連線
想請問有甚麼可能導致出現這個錯誤?
謝謝

重連疑問

想請問,當手環因距離太遠而斷線,重新靠近時想要重新配對,應當套用甚麼函式?是使用doConnectDevice嗎?(自己測試時執行到doConnectDevice就出現閃退問題)

Android项目冲突。

接入改SDK后,编译出现如下报错,请问怎么解决处理呢?
AGPBI: {"kind":"error","text":"2 errors; aborting","sources":[{}]}
:app:transformClassesWithDexForOPPODebug FAILED
FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:transformClassesWithDexForOPPODebug'.

com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: Return code 1 for dex process

Error message

想請問 我在doSyncFitnessData 的SyncCallback的onFailure回傳的errorcode是29,這代表甚麼意思?

手環心跳與血氧原理及資料

想請問Care-X HR手環中的心跳及血氧是利用光學檢測的原理嗎,如過是的話能否藉由客製化的服務獲取光學偵測的資料(像是光學數值的變化)

謝謝

Raw data

Can the SDK support to output raw data?

v1.5_2019-07-23 is now available!!

Dear Developers,

We managed to release the v1.5_2019-07-23 version. This release changes the way to read firmware configuration from "binary_list.json" file and fixes some bugs as well (release notes here).

Kindly check it~

Many thanks.

-- GOLiFE GoFIT SDK Team.

Android版本限制

如題,想請問使用SDK時,需要注意手機Android版本最少要在幾以上嗎?

如何啟動Demo APP

按照官網之安裝步驟安裝完後,開啟android studio,無法執行run圖示,
請問是有哪一個步驟出錯嗎?謝謝。
android_studio

震動疑問

目前嘗試只有顯示文字時會附加震動功能,想請問可以單獨讓手環震動嗎?有震動的函式嗎?

在使用android app demo遇到問題

您好:我已依照以下網址操作
https://github.com/GO-LiFE/GoFIT_SDK_Android/wiki/Demo-App-(SDK-的安裝與-compile)
APP是可以啟動了,用來 initialize SDK,開啟 app 後須先執行此功能會發生error閃退錯誤狀況如下圖
2019-01-27 1 37 26
錯誤訊息如下:
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.goyourlife.gofit_demo-jHue2eCjM08K_Fau2jVoiA==/base.apk"],nativeLibraryDirectories=[/data/app/com.goyourlife.gofit_demo-jHue2eCjM08K_Fau2jVoiA==/lib/x86, /system/lib]]] couldn't find "libsdk-lib.so"
at java.lang.Runtime.loadLibrary0(Runtime.java:1012)
再煩請協助,感謝!

是否有支援偵測手環上的按鈕被按下?

你好,
我們想開發一個警訊系統,希望能雙擊下手環上的按鈕後讓手機收到一個訊號,對伺服器發出警訊
請問貴公司的 API 是否有支援偵測按鈕事件的功能?
謝謝

Scan Device無法正常運作

我正在測試貴公司的Demo APP "Scan Device"的部分似乎沒有正常運作
有成功初始化SDK 也確定有開啟藍芽

image

Logcat出現這些訊息,似乎沒有正常的Scan Device
想知道是哪裡出了問題,謝謝

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.