Experimental unofficial Bluetooth API for Android
来源:互联网 发布:淘宝被下架后怎么上架 编辑:程序博客网 时间:2024/04/30 19:01
Code license:
Apache License 2.0
Featured downloads:
AndroidBluetoothAPI_0.3.jar
AndroidBluetoothAPI_javadoc_0.3.zip
AndroidBluetoothAPI_src_0.3.zip
Important News
Now (2009/10/27) that Android 2.0 supports Bluetooth, we will redesign our (unofficial) Bluetooth API for Android to be as much similar as possible to the official API. This way:
- applications running on Android 1.1, 1.5 and 1.6 based on Bluetooth API will be easily ported to Android 2.0
- devices not upgraded to latest firmware version will be able to run Bluetooth features
Redesigned API will be published as "Bluetooth API 1.0" and it is expected to be available the first week of November.
Description
This project aims to provide a simple API to access Android's Bluetooth stack. This library does not to require a rooted device: it is intended to work with standard firmware provided by phone manufacturers.
Currently only remote device scanning, remote device pairing, (partial) service discovery (SDP) and client RFCOMM serial connections are supported. Support for other profiles (e.g. audio) than RFCOMM is not available. RFCOMM server connections are still not supported.
This library is to be considered as experimental, it has not been designed nor tested for production environments. Any future change to the Bluetooth stack on Android releases could make this library totally useless. Although it has been successfully tested on firmware 1.1, 1.5 "cupcake" and 1.6 "donut", do not expect to get it work on future releases (even minor updates). Use it at your own risk.
Check the sample application "Bluetooth Samples" on the Android Market.
Don't forget to add following permissions to your application:
The (unofficial) Bluetooth API for Android has been tested on:
- HTC Dream (aka T-Mobile G1, firmware 1.1, 1.5 and 1.6)
- HTC Magic (firmware 1.5 and 1.6)
- HTC Tattoo (firmware 1.6)
- Huawei U8220 (aka T-Mobile Pulse, firmware 1.5)
- (partially tested) Samsung Galaxy (firmware 1.5)
It has been reported as NOT working on HTC Hero (I have not this handset, therefore I could not do any investigation to date). Still not tested on Archos 5 Internet Tablet and Zii EGG (which still does not support Bluetooth on its Android porting).
http://code.google.com/p/android-bluetooth
BluetoothAPIHowto
Initialization
Don't forget to add following permissions to the AndroidManifest.xml of your application:
The entry-point for the Bluetooth API is LocalBluetoothDevice class, that has to be initialized with a Context instance (for instance, current Activity):
LocalBluetoothDevice localBT = LocalBluetoothDevice.initLocalDevice(_context);
LocalBluetoothDevice must be closed before leaving the activity. The best is to close it in the onDestroy() callback:
Bluetooth enable/disable
TO BE ADDED
Bluetooth device discovery
TO BE ADDED
- Experimental unofficial Bluetooth API for Android
- javaTM API for Bluetooth
- Android API Guides---Bluetooth
- android bluetooth api
- Bluetooth Multiplayer for android
- Android Bluetooth 官方 API 介绍
- Android Bluetooth 官方 API 介绍
- bluetooth overview for android QC
- Android for Bluetooth Connection State
- android有关bluetooth常用api简介
- android有关bluetooth常用api简介
- Android API Guides---Bluetooth Low Energy
- Unofficial Windows Binaries for Python Extension Packages
- Unofficial Windows Binaries for Python Extension Packages
- Unofficial Windows Binaries for Python Extension Packages
- Unofficial Windows Binaries for Python Extension Packages
- Unofficial Windows Binaries for Python Extension Packages
- Unofficial Windows Binaries for Python Extension Packages
- 接受新事物,原来真的不容易
- EFF_STL4
- 与国同庆,无我无关
- Java反射经典实例 Java Reflection Cookbook
- 坐办公室应该熟练的键盘操作
- Experimental unofficial Bluetooth API for Android
- 分布式多串口步进电机控制的设计与实现
- boost1.43在win7下的编译
- RSS Reader实例开发之系统设计
- Huanyun文章管理系统(C#)开源下载
- mipmap纹理
- DOS命令大全:使用命令重定向操作符 (Redirection Operators)命令详解
- PLSQL软件连接到Oracle客户端
- 昨天 今天 明天