我想使用蓝牙SPP在它进行交流。在一些Android手机,最高人民检察院的资料不会被激活。我面临着最高人民检察院未激活,因此该连接无法通过蓝牙技术建立在应用程序中的问题,当我开始了一个应用程序,它是3G热点,我想激活最高人民检察院和我能够连接通过蓝牙在我的应用程序。
I am trying to use Bluetooth SPP to communicate over it. In some Android phones, SPP profile is not activated. I faced the problem in the application that SPP was not activated and so the connection could not be established over bluetooth and when I started another app that is 3g hotspot which I think activates SPP and I was able to connect over bluetooth in my app.
那么,我们如何才能真正激活蓝牙的Android设备SPP的个人资料?而完成所有的Android设备具有最高人民检察院的个人资料?
So, how can we actually activate SPP profile of bluetooth in Android devices? And does all the android devices has SPP profile?
推荐答案
在developer.android.com BluetoothSocket:
In developer.android.com BluetoothSocket:
蓝牙的最常见的类型 插座是RFCOMM,这是该类型 通过Android的API的支持。 RFCOMM 是一种面向连接的,流 运输通过蓝牙。也是 被称为串行端口配置文件 (SPP)。
The most common type of Bluetooth socket is RFCOMM, which is the type supported by the Android APIs. RFCOMM is a connection-oriented, streaming transport over Bluetooth. It is also known as the Serial Port Profile (SPP).
相关推荐
最新文章