日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > Android >内容正文

Android

android 5.0 ble demo,Android BLE蓝牙例子(包括android版Lightblue)实例源码

發布時間:2023/12/20 Android 22 豆豆
生活随笔 收集整理的這篇文章主要介紹了 android 5.0 ble demo,Android BLE蓝牙例子(包括android版Lightblue)实例源码 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

【實例簡介】

源碼里面有Bluetooth4_3/BLEDemo/Android_Lightblue.apk三個.前兩個是BLE的demo。BLEDemo這個功能較Bluetooth4_3多一些,有興趣的可以都看下。Android_Lightblue.apk是Android版的lightblue,在進行ble開發的時候用該app作為輔助工具還是非常不錯的,功能較Bluetooth4_3 BLEDemo 這兩個demo都強大。不過Android_Lightblue.apk在android5.0以上的版本手機上運行不起來,我也沒有該app的源碼。看看后面會不會有更新。對應博客地址:http://blog.csd

【實例截圖】

【核心代碼】

BLE

├── Android_Lightblue.apk

├── BLEDemo

│?? ├── AndroidManifest.xml

│?? ├── bin

│?? │?? ├── AndroidManifest.xml

│?? │?? ├── classes

│?? │?? │?? └── org

│?? │?? │?? └── bluetooth

│?? │?? │?? └── bledemo

│?? │?? │?? ├── BleDefinedUUIDs$Characteristic.class

│?? │?? │?? ├── BleDefinedUUIDs$Descriptor.class

│?? │?? │?? ├── BleDefinedUUIDs$Service.class

│?? │?? │?? ├── BleDefinedUUIDs.class

│?? │?? │?? ├── BleNamesResolver.class

│?? │?? │?? ├── BleWrapper$1.class

│?? │?? │?? ├── BleWrapper$2.class

│?? │?? │?? ├── BleWrapper$3.class

│?? │?? │?? ├── BleWrapper.class

│?? │?? │?? ├── BleWrapperUiCallbacks$Null.class

│?? │?? │?? ├── BleWrapperUiCallbacks.class

│?? │?? │?? ├── BuildConfig.class

│?? │?? │?? ├── CharacteristicDetailsAdapter$1.class

│?? │?? │?? ├── CharacteristicDetailsAdapter$2.class

│?? │?? │?? ├── CharacteristicDetailsAdapter$3.class

│?? │?? │?? ├── CharacteristicDetailsAdapter$FieldReferences.class

│?? │?? │?? ├── CharacteristicDetailsAdapter.class

│?? │?? │?? ├── CharacteristicsListAdapter$FieldReferences.class

│?? │?? │?? ├── CharacteristicsListAdapter.class

│?? │?? │?? ├── DeviceListAdapter$FieldReferences.class

│?? │?? │?? ├── DeviceListAdapter.class

│?? │?? │?? ├── HRDemoActivity$1.class

│?? │?? │?? ├── HRDemoActivity$2.class

│?? │?? │?? ├── HRDemoActivity$3.class

│?? │?? │?? ├── HRDemoActivity$4.class

│?? │?? │?? ├── HRDemoActivity$5.class

│?? │?? │?? ├── HRDemoActivity.class

│?? │?? │?? ├── PeripheralActivity$10.class

│?? │?? │?? ├── PeripheralActivity$11.class

│?? │?? │?? ├── PeripheralActivity$1.class

│?? │?? │?? ├── PeripheralActivity$2.class

│?? │?? │?? ├── PeripheralActivity$3.class

│?? │?? │?? ├── PeripheralActivity$4.class

│?? │?? │?? ├── PeripheralActivity$5.class

│?? │?? │?? ├── PeripheralActivity$6.class

│?? │?? │?? ├── PeripheralActivity$7.class

│?? │?? │?? ├── PeripheralActivity$8.class

│?? │?? │?? ├── PeripheralActivity$9.class

│?? │?? │?? ├── PeripheralActivity$ListType.class

│?? │?? │?? ├── PeripheralActivity.class

│?? │?? │?? ├── R$attr.class

│?? │?? │?? ├── R$dimen.class

│?? │?? │?? ├── R$drawable.class

│?? │?? │?? ├── R$id.class

│?? │?? │?? ├── R$layout.class

│?? │?? │?? ├── R$menu.class

│?? │?? │?? ├── R$string.class

│?? │?? │?? ├── R$style.class

│?? │?? │?? ├── R.class

│?? │?? │?? ├── ScanningActivity$1.class

│?? │?? │?? ├── ScanningActivity$2.class

│?? │?? │?? ├── ScanningActivity$3.class

│?? │?? │?? ├── ScanningActivity.class

│?? │?? │?? ├── ServicesListAdapter$FieldReferences.class

│?? │?? │?? └── ServicesListAdapter.class

│?? │?? └── jarlist.cache

│?? ├── gen

│?? │?? └── org

│?? │?? └── bluetooth

│?? │?? └── bledemo

│?? │?? ├── BuildConfig.java

│?? │?? └── R.java

│?? ├── ic_launcher-web.png

│?? ├── libs

│?? │?? └── android-support-v4.jar

│?? ├── proguard-project.txt

│?? ├── project.properties

│?? ├── res

│?? │?? ├── drawable-hdpi

│?? │?? │?? └── ic_launcher.png

│?? │?? ├── drawable-mdpi

│?? │?? │?? └── ic_launcher.png

│?? │?? ├── drawable-xhdpi

│?? │?? │?? └── ic_launcher.png

│?? │?? ├── drawable-xxhdpi

│?? │?? │?? └── ic_launcher.png

│?? │?? ├── layout

│?? │?? │?? ├── activity_hrdemo.xml

│?? │?? │?? ├── activity_peripheral.xml

│?? │?? │?? ├── activity_scanning_item.xml

│?? │?? │?? ├── peripheral_details_characteristic_item.xml

│?? │?? │?? ├── peripheral_list_characteristic_item.xml

│?? │?? │?? ├── peripheral_list_services_header.xml

│?? │?? │?? ├── peripheral_list_services_item.xml

│?? │?? │?? └── progress_indicator.xml

│?? │?? ├── menu

│?? │?? │?? ├── peripheral.xml

│?? │?? │?? └── scanning.xml

│?? │?? ├── values

│?? │?? │?? ├── dimens.xml

│?? │?? │?? ├── strings.xml

│?? │?? │?? └── styles.xml

│?? │?? ├── values-sw600dp

│?? │?? │?? └── dimens.xml

│?? │?? ├── values-sw720dp-land

│?? │?? │?? └── dimens.xml

│?? │?? ├── values-v11

│?? │?? │?? └── styles.xml

│?? │?? └── values-v14

│?? │?? └── styles.xml

│?? └── src

│?? └── org

│?? └── bluetooth

│?? └── bledemo

│?? ├── BleDefinedUUIDs.java

│?? ├── BleNamesResolver.java

│?? ├── BleWrapper.java

│?? ├── BleWrapperUiCallbacks.java

│?? ├── CharacteristicDetailsAdapter.java

│?? ├── CharacteristicsListAdapter.java

│?? ├── DeviceListAdapter.java

│?? ├── HRDemoActivity.java

│?? ├── PeripheralActivity.java

│?? ├── ScanningActivity.java

│?? └── ServicesListAdapter.java

└── Bluetooth4_3

└── Bluetooth4_3

├── AndroidManifest.xml

├── bin

│?? ├── AndroidManifest.xml

│?? ├── Bluetooth4_3.apk

│?? ├── classes

│?? │?? └── com

│?? │?? └── example

│?? │?? └── bluetooth

│?? │?? └── le

│?? │?? ├── BluetoothLeService$1.class

│?? │?? ├── BluetoothLeService$LocalBinder.class

│?? │?? ├── BluetoothLeService.class

│?? │?? ├── BuildConfig.class

│?? │?? ├── DeviceControlActivity$1.class

│?? │?? ├── DeviceControlActivity$2.class

│?? │?? ├── DeviceControlActivity$3.class

│?? │?? ├── DeviceControlActivity$4.class

│?? │?? ├── DeviceControlActivity.class

│?? │?? ├── DeviceScanActivity$1$1.class

│?? │?? ├── DeviceScanActivity$1.class

│?? │?? ├── DeviceScanActivity$2.class

│?? │?? ├── DeviceScanActivity$LeDeviceListAdapter.class

│?? │?? ├── DeviceScanActivity$ViewHolder.class

│?? │?? ├── DeviceScanActivity.class

│?? │?? ├── MainActivity.class

│?? │?? ├── R$attr.class

│?? │?? ├── R$dimen.class

│?? │?? ├── R$drawable.class

│?? │?? ├── R$id.class

│?? │?? ├── R$layout.class

│?? │?? ├── R$menu.class

│?? │?? ├── R$string.class

│?? │?? ├── R$style.class

│?? │?? ├── R.class

│?? │?? └── SampleGattAttributes.class

│?? ├── classes.dex

│?? ├── dexedLibs

│?? │?? ├── android-support-v4-a35b868f25440c845f65d7acf67a8a25.jar

│?? │?? └── android-support-v4-bcd3d5a754016d41cbb9ebf6ce42c0af.jar

│?? ├── jarlist.cache

│?? ├── res

│?? │?? ├── drawable-hdpi

│?? │?? │?? └── ic_launcher.png

│?? │?? ├── drawable-mdpi

│?? │?? │?? └── ic_launcher.png

│?? │?? ├── drawable-xhdpi

│?? │?? │?? └── ic_launcher.png

│?? │?? └── drawable-xxhdpi

│?? │?? └── ic_launcher.png

│?? └── resources.ap_

├── gen

│?? └── com

│?? └── example

│?? └── bluetooth

│?? └── le

│?? ├── BuildConfig.java

│?? └── R.java

├── ic_launcher-web.png

├── libs

│?? └── android-support-v4.jar

├── proguard-project.txt

├── project.properties

├── res

│?? ├── drawable-hdpi

│?? │?? └── ic_launcher.png

│?? ├── drawable-mdpi

│?? │?? └── ic_launcher.png

│?? ├── drawable-xhdpi

│?? │?? └── ic_launcher.png

│?? ├── drawable-xxhdpi

│?? │?? └── ic_launcher.png

│?? ├── layout

│?? │?? ├── actionbar_indeterminate_progress.xml

│?? │?? ├── activity_main.xml

│?? │?? ├── gatt_services_characteristics.xml

│?? │?? └── listitem_device.xml

│?? ├── menu

│?? │?? ├── gatt_services.xml

│?? │?? └── main.xml

│?? ├── values

│?? │?? ├── dimens.xml

│?? │?? ├── strings.xml

│?? │?? └── styles.xml

│?? ├── values-sw600dp

│?? │?? └── dimens.xml

│?? ├── values-sw720dp-land

│?? │?? └── dimens.xml

│?? ├── values-v11

│?? │?? └── styles.xml

│?? └── values-v14

│?? └── styles.xml

└── src

└── com

└── example

└── bluetooth

└── le

├── BluetoothLeService.java

├── DeviceControlActivity.java

├── DeviceScanActivity.java

├── MainActivity.java

└── SampleGattAttributes.java

64 directories, 163 files

總結

以上是生活随笔為你收集整理的android 5.0 ble demo,Android BLE蓝牙例子(包括android版Lightblue)实例源码的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。