Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The OmniCare SDK is distributed as aar file. To add it to your project, copy OmniCareSDK.aar to the libs folder and add the following to your build.gradle.

Code Block
repositories { 
    flatDir { 
        dirs 'libs' 
    }
}

dependencies { 
    implementation(name: 'OmniCareSDK', ext: 'aar')
}

...

Add the properties in manifest file. For Android 6.0+, users grant permissions to apps while the app is running, not when they install the app. Please refer official document to add necessary code: https://developer.android.com/training/permissions/requesting.html .

Code Block
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />

<!-- Coarse Location for API <29 (Android 9 and lower) -->
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />

<!-- Fine Location for API >=29 (Android 10 and higher) -->
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />

<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.READ_CONTACTS"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE" />

<!-- Permission needed for Android Pie to distinguish who is calling -->
<uses-permission android:name="android.permission.READ_CALL_LOG"/>

<!-- Permission needed for Android Oreo call handling -->
<uses-permission android:name="android.permission.ANSWER_PHONE_CALLS"/>

<!-- Permission needed to reject incoming phone calls -->
<uses-permission android:name="android.permission.CALL_PHONE"/>

<!-- Media Control Permission for Advanced Music Controls -->
<uses-permission android:name="android.Manifest.permission.MEDIA_CONTENT_CONTROL"/>

<!-- Foreground Permission required for newer Android SDKs -->
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>

...

Before using the OmniCare SDK, you need to initialize it first. Add a call to AsusLifeOmniCare.initialize()in the onCreate() method of your Application class. (If you gona build with Garmin devices, please be sure to pass the license key to the init method)

Code Block
AsusLifeOmniCare.initialize(context, account, password, new AsusLifeOmniCareInitializationCallback() { 
    @Override 
    public void onSuccess() { 
    // Called when the initializing process completes successfully.
    } 
    
    @Override 
    public void onFailed(AsusLifeOmniCareInitializationException e) { 
    // Called if initializing fails.
    }
});

...

The first step in communication is finding a device to communicate with. The BLE scanning APIs provided by the Android SDK are used for this.

After you hold the Location permission, you have also to verify that Location services are enabled before starting the scan.

...

As the device has been paired, using the method below to sync the vital signs data from device and upload the data to OmniCare.

Code Block
private SyncingCallback syncingCallback = new SyncingCallback() { 
    @Override 
    public void onSyncComplete(Device device) { 
    // Called when the syncing process completes successfully. 
    } 
    @Override 
    public void onSyncFailed(Device device, SyncingFailedException e) {
    // Called if syncing fails. 
    } 
    @Override 
    public void onSyncStarted(Device device) { 
    // Called if syncing starts. 
    } 
}

…

DeviceManager deviceManager = AsusLifeOmniCare.getDeviceManager();

deviceManager.requestDeviceSync(device, syncingCallback);

...

...

1.Fix VivoWatch SP Compatible with new FW.

2.Add getLocalData 

V1.9.2(May 2022)

1.VivoWatch SP,5 support altitude, air pressure, g sensor. 

V1.9.1(April 2022)

1.Fix crash when legacy upgrade. 

V1.9.0(April 2022)

1.Added support for VivoWatch 5.

 

V1.8.0(May 2021)

1.Added support for GERD CAP. 

V1.7.0(January 2021)

1.Added support for VivoWatch SP.

 

V1.6.2(December 2020)

1.Added data logging during data upload to OmniCare.

...

1.Security update.

V1.6.0(August 2020)

1.In order to ensure the stability of data retrieval, we have established a local database. When the server is abnormal, the data will be returned from the local database.

...

            tools:replace="label"/>

...

</application>

...

v1.6.2 (2020.12..07)

  1. Add the log to monitor Garmin’s SDK; to see is Garmin’s SDK has potential issues that down unexpectedly

V1.2.0(December 2019)

1.New feature
-Added notification setting options to VivoWatch BP

...

V1.1.0(November 2019)
1.New feature
-FW update
-Pill reminder
-Frequency of checks setting

V1.0.0

1.New release.

Reference

Please see javadoc for more information.