iT邦幫忙

DAY 20
0

Android APP 30天開發實戰系列 第 17

Android App 開發日記 - 藍芽裝置應用

Android App 開發專案過程分享
http://ithelp.ithome.com.tw/ironman6/player/xq3da2/dev/1
Android 提供藍芽以下的基本功能:

  1. 掃描偵測其他的藍芽裝置。
  2. 查詢本機藍芽控制器所配對到的藍芽裝置。
  3. 建立 RFCOMM 通道。
  4. 經由服務搜尋而連接其他設備。
  5. 在不同裝置之間傳送資料。
  6. 管理多重連接。

下圖為 Android Bluetooth Architecture 架構圖。

主要的 API 都放在 android.bluetooth 的套件中。

  1. BluetoothAdapter
  2. BluetoothDevice
  3. BluetoothSocket
  4. BluetoothServerSocket
  5. BluetoothClass

上一篇
Android App 開發日記 - 多執行緒的應用
下一篇
Android App 開發日記 - 我的隨身筆記本
系列文
Android APP 30天開發實戰27
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言