在Android中激活蓝牙SPP? [英] Activate Bluetooth SPP in Android?

查看:17
本文介绍了在Android中激活蓝牙SPP?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用蓝牙 SPP 进行通信.在某些 Android 手机中,SPP 配置文件未激活.我在应用程序中遇到了 SPP 未激活的问题,因此无法通过蓝牙建立连接,当我启动另一个应用程序是 3g 热点时,我认为它激活了 SPP,并且我能够在我的应用程序中通过蓝牙连接.

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 配置文件?是否所有的安卓设备都有 SPP 配置文件?

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 蓝牙插座:

In developer.android.com BluetoothSocket:

最常见的蓝牙类型套接字是RFCOMM,这是类型Android API 支持.射频通信是一个面向连接的流媒体通过蓝牙传输.也是称为串行端口配置文件(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).

这篇关于在Android中激活蓝牙SPP?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆