简体   繁体   English

如何发现蓝牙耳机?

[英]How to discovery a bluetooth headset?

I write a sample code to discovery a bluetooth headset(jabra BT2035). 我编写了一个示例代码来发现蓝牙耳机(Jabra BT2035)。 referece http://developer.android.com/guide/topics/wireless/bluetooth.html#DiscoveringDevices 请参阅http://developer.android.com/guide/topics/wireless/bluetooth.html#DiscoveringDevices

But it can only discovery my notebook computer. 但是它只能发现我的笔记本电脑。 If my notebook computer enables bluetooth and sets Enabling discoverability. 如果我的笔记本计算机启用了蓝牙并设置了“启用可发现性”。

The SDK document snippet: SDK文档片段:

android.bluetooth.device.action.FOUND"
public static final String ACTION_FOUND
Since: API Level 5
Broadcast Action: Remote device discovered.
Sent when a remote device is found during discovery.

I think the remote device means a remote notebook computer except a bluetooth headset. 我认为远程设备是指除蓝牙耳机之外的远程笔记本计算机。 Could someone please help with this? 有人可以帮忙吗?

thanks alot. 非常感谢。 BR, Perrot BR,佩罗特

Most likely you have to put your headset into discoverable mode. 您极有可能必须将耳机置于可发现模式。 Read user manual to your headset. 阅读耳机的用户手册。 For example my SONY BT headset is only visible for pairing after I hold power button for 5 seconds. 例如,只有按住电源按钮5秒钟后,才能看到SONY BT耳机配对。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM