共 17 篇文章 |
|
android 中文 api (72) —— BluetoothSocket[蓝牙]本章内容是 android.bluetooth.BluetoothSocket,为Android蓝牙部分的章节翻译。版本为 Android 2.3 r1,翻译来自中山大学的"Android Club SYSU",欢迎访问他们的WIKI:http://www.android-wiki.net,再次感谢"Android Club SYSU"!蓝牙端口监听接口和TCP端口类似:Soc... 阅313 转4 评0 公众公开 12-02-08 13:50 |
android 中文 api (71) —— BluetoothServerSocket[蓝牙]本章内容是 android.bluetooth.BluetoothServerSocket,为Android蓝牙部分的章节翻译。版本为 Android 2.3 r1,翻译来自中山大学的"Android Club SYSU",欢迎访问他们的WIKI:http://www.android-wiki.net,再次感谢"Android Club SYSU"!蓝牙端口监听接口和TCP... 阅221 转4 评0 公众公开 12-02-08 13:50 |
Android 中文API (70) —— BluetoothDevice[蓝牙]为了获得BluetoothDevice,类,使用BluetoothAdapter.getRemoteDevice(String)方法去创建一个表示 已知MAC地址的设备(用户可以通过带有BluetoothAdapter类来完成对设备的查找)或者从一个通过 BluetoothAdapter.getBondedDevices()得到返回值的有联系的设备集合来得到该设备。常量值: "... 阅439 转9 评0 公众公开 12-02-08 13:49 |
Android 中文API (69) —— BluetoothAdapter[蓝牙]广播活动:本地蓝牙适配器已经更改了它的蓝牙名称。指明在本地蓝牙适配器中,查询扫描功能和页面扫描功能都失效. 因此该设备既不可以被远程蓝牙设备发现,也不可以被其连接。这个方法友好地停止所有的蓝牙连接,停止蓝牙系统服务,以及对所有基础蓝牙硬件进行断电。获取本地蓝牙适配器的当... 阅698 转6 评0 公众公开 12-02-08 13:47 |
Android 中文API (68) —— BluetoothClass.Service。本章内容是 android.bluetooth.BluetoothClass.Service,为Android蓝牙部分的章节翻译,版本为 Android 2.3 r1,翻译来自中山大学的"Android Club SYSU",欢迎访问他们的WIKI:http://www.android-wiki.net,再次感谢"Android Club SYSU"!期待你一起参与Android中文... 阅98 转2 评0 公众公开 12-02-08 13:47 |
Android 中文API (67) —— BluetoothClass.Device.Major.本章内容是android.bluetooth.BluetoothClass.Device.Major,为Android蓝牙部分的章节翻译,版本为Android 2.3 r1,翻译来自中山大学的"Android Club SYSU",欢迎访问他们的WIKI:http://www.android-wiki.net,再次感谢"Android Club SYSU"!期待你一起参与Andr... 阅98 转3 评0 公众公开 12-02-08 13:46 |
Android 中文API (66) —— BluetoothClass.Device.本章内容是android.bluetooth.BluetoothClass.Device,为Android蓝牙部分的章节翻译,版本为Android 2.3 r1,翻译来自中山大学的"Android Club SYSU",欢迎访问他们的WIKI:http://www.android-wiki.net,再次感谢"Android Club SYSU"!int AUDIO_VIDEO_UNCATEGORIZED... 阅109 转5 评0 公众公开 12-02-08 13:45 |
Android 中文API (65) —— BluetoothClass[蓝牙]BluetoothClass 用作一个能粗略描述一个设备(比如关闭用户界面上一个图标的设备)的线索,但当蓝牙服务事实上是被一个设备所支撑的时候,BluetoothClass的 介绍则不那么可信任。通常约定,对于equals(Object)和hashCode() 方法,如果equals对于任意两个对象返回真值,那么hashCode()必须对这... 阅309 转4 评1 公众公开 12-02-08 13:44 |
BluetoothAdapter(建立LocalBluetoothManager和BluetoothService的映射关系,主要是通过它调用BluetoothService的函数) 扫描。以A2DP为例,在connectInt里,根据不同的profile来获得profilemanger,然后调用 profilemanger.connect()函数,在这个函数里调用了BluetoothA2dpService的connectSink()函数,最后调到Native方法connectSinkNative(... 阅310 转2 评0 公众公开 12-02-08 13:44 |
首先,要操作蓝牙,先要在AndroidManifest.xml里加入权限<uses- permissionandroid:name="android.permission.BLUETOOTH_ADMIN" /><uses-permissionandroid:name="android.permission.BLUETOOTH" />然后,看下api,Android所有关于蓝牙开发的类都在android.bluetooth包下,,只有8个类 而我们... 阅169 转2 评0 公众公开 12-02-08 13:43 |