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

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

问题描述

我想使用蓝牙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.

那么,我们如何才能真正激活蓝牙的Andr​​oid设备SPP的个人资料?而完成所有的Andr​​oid设备具有最高人民检察院的个人资料?

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 <一href="http://developer.android.com/reference/android/bluetooth/BluetoothSocket.html">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).

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

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