Package
amea
droidbluetooth,主要相关类介绍如下:r
r
BluetoothAdapter本地蓝牙设备的适配类,所有的蓝牙操作都要通过该类完成;r
BluetoothDevice蓝牙设备类,代表了蓝牙通讯过程中的远端设备;r
BluetoothSocket蓝牙通讯套接字,代表了与远端设备的连接点,使用socket本地程序可以通过i
putstream和outputstream与远端程序进行通讯;r
BluetoothServerSocket服务器通讯套接字,与TCPServerSocket类似;r
BluetoothClass用于描述远端设备的类型,特点等信息,通过getBluetoothClass方法获取代表远端设备属性的BluetoothClass对象。r
r
使用蓝牙必须获取的权限:r
r
usespermissio
a
droid
ame