摘要:
原文地址:http://developer.android.com/guide/topics/wireless/bluetooth.html翻译:jykenan更新:2012.06.19Android平台支持蓝牙网络协议栈,实现蓝牙设备之间数据的无线传输。本文档描述了怎样利用android平台提供的... 阅读全文
posted @ 2015-06-10 16:35
brave-sailor
阅读(498)
评论(0)
推荐(0)
摘要:
一 BluetoothAdapter简介1.继承关系该类仅继承了Object类;2.该类作用BluetoothAdapter代表了移动设备的本地的蓝牙适配器, 通过该蓝牙适配器可以对蓝牙进行基本操作, 例如 : 启动设备发现(startDiscovery), 获取已配对设备(getBoundedDe... 阅读全文
posted @ 2015-06-10 16:33
brave-sailor
阅读(473)
评论(0)
推荐(0)
摘要:
Android 实现了对Headset 和Handsfree 两种profile 的支持。其实现核心是BluetoothHeadsetService,在PhoneApp 创建的时候会启动它。 if (getSystemService(Context.BLUETOOTH_SERVICE) !=... 阅读全文
posted @ 2015-06-10 15:38
brave-sailor
阅读(1953)
评论(0)
推荐(0)
摘要:
Bluetooth —— 蓝牙The Android platform includes support for the Bluetooth network stack, which allows a device to wirelessly exchange data with other Blu... 阅读全文
posted @ 2015-06-10 15:34
brave-sailor
阅读(1390)
评论(0)
推荐(0)
摘要:
A2dp profile是android支持的一种蓝牙情景模式,一般用于蓝牙立体声耳机,即蓝牙音频的输出在android的app层中,A2dp的使用并不是很开放,api只提供了非常少的操作接口,连基本的连接都只能用反射来调用底层的方法。a2dp的使用是通过BluetoothA2dp这个代理类来控制A... 阅读全文
posted @ 2015-06-10 09:55
brave-sailor
阅读(2210)
评论(0)
推荐(0)