【问题标题】:Using Bluetooth HDP Profile in Motorola Droid Razr M在 Motorola Droid Razr M 中使用蓝牙 HDP 配置文件
【发布时间】:2012-10-16 06:59:07
【问题描述】:
【问题讨论】:
标签:
android
bluetooth
bluetooth-lowenergy
motorola-droid
【解决方案1】:
只需下载 android BluetoothHDP 示例并尝试。顺便说一句,你必须调整代码:
else if (prevState == BluetoothHealth.STATE_CHANNEL_CONNECTING && newState == BluetoothHealth.STATE_CHANNEL_CONNECTED) {
if (config.equals(mHealthAppConfig))
{
mChannelId = channelId;
sendMessage(STATUS_CREATE_CHANNEL, RESULT_OK);
(new ReadThread(fd)).start();
}
else
{
sendMessage(STATUS_CREATE_CHANNEL, RESULT_FAIL);
}
到 BluetoothHDPService.onHealthChannelStateChange()。
更多信息:
Bluetooth HDP android 4.0 really works?
【讨论】:
-
欢迎来到 Stackoverflow!一般来说,我们希望网站上的答案能够独立存在 - 链接很棒,但如果该链接断开,答案应该有足够的信息仍然有用。请考虑编辑您的答案以包含更多详细信息。请参阅FAQ 了解更多信息。