コード例 #1
0
 // Disconnect channel through the Bluetooth Health API.
 private void disconnectChannel() {
   Log.i(TAG, "disconnectChannel()");
   mBluetoothHealth.disconnectChannel(mDevice, mHealthAppConfig, mChannelId);
 }
コード例 #2
0
 // Unregister health application through the Bluetooth Health API.
 private void unregisterApp() {
   mBluetoothHealth.unregisterAppConfiguration(mHealthAppConfig);
 }
コード例 #3
0
 // Connect channel through the Bluetooth Health API.
 private void connectChannel() {
   Log.i(TAG, "connectChannel()");
   mBluetoothHealth.connectChannelToSource(mDevice, mHealthAppConfig);
 }
コード例 #4
0
 // Register health application through the Bluetooth Health API.
 private void registerApp(int dataType) {
   mBluetoothHealth.registerSinkAppConfiguration(TAG, dataType, mHealthCallback);
 }