【实例简介】
主要是完成对蓝牙的操作,完成蓝牙的连接,发送数据,接受数据,实现和蓝牙的交互
【实例截图】
【核心代码】
JDY-10资料
└── JDY-10资料
├── APP透传源码
│ └── BluetoothLeGatt
│ ├── AndroidManifest.xml
│ ├── bin
│ │ ├── AndroidManifest.xml
│ │ ├── 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$5.class
│ │ │ ├── DeviceControlActivity$6.class
│ │ │ ├── DeviceControlActivity$7.class
│ │ │ ├── DeviceControlActivity.class
│ │ │ ├── DeviceScanActivity$1$1.class
│ │ │ ├── DeviceScanActivity$1.class
│ │ │ ├── DeviceScanActivity$2.class
│ │ │ ├── DeviceScanActivity$3.class
│ │ │ ├── DeviceScanActivity$DeviceListAdapter.class
│ │ │ ├── DeviceScanActivity$ViewHolder.class
│ │ │ ├── DeviceScanActivity.class
│ │ │ ├── R$attr.class
│ │ │ ├── R$drawable.class
│ │ │ ├── R$id.class
│ │ │ ├── R$layout.class
│ │ │ ├── R$menu.class
│ │ │ ├── R$string.class
│ │ │ ├── R.class
│ │ │ └── SampleGattAttributes.class
│ │ ├── classes.dex
│ │ ├── DeviceScanActivity.apk
│ │ ├── dexedLibs
│ │ │ └── Service-a4fb5442c538161ddf9e0cb375a20430.jar
│ │ ├── jarlist.cache
│ │ ├── res
│ │ │ └── crunch
│ │ │ ├── drawable-hdpi
│ │ │ │ ├── ic_launcher1.png
│ │ │ │ └── ic_launcher.png
│ │ │ ├── drawable-ldpi
│ │ │ │ └── ic_launcher.png
│ │ │ ├── drawable-mdpi
│ │ │ │ ├── ic_launcher1.png
│ │ │ │ └── ic_launcher.png
│ │ │ ├── drawable-xhdpi
│ │ │ │ └── ic_launcher.png
│ │ │ └── drawable-xxhdpi
│ │ │ ├── ic_launcher1.png
│ │ │ └── ic_launcher.png
│ │ └── resources.ap_
│ ├── BluetoothLeGatt.iml
│ ├── BluetoothLeGattSample
│ │ ├── BluetoothLeGattSample.iml
│ │ ├── build
│ │ │ ├── apk
│ │ │ │ └── BLE_DEMO.apk
│ │ │ ├── classes
│ │ │ │ └── debug
│ │ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── android
│ │ │ │ └── bluetoothlegatt
│ │ │ │ ├── BluetoothLeService$1.class
│ │ │ │ ├── BluetoothLeService$LocalBinder.class
│ │ │ │ ├── BluetoothLeService.class
│ │ │ │ ├── BuildConfig.class
│ │ │ │ ├── DeviceControlActivity$1.class
│ │ │ │ ├── DeviceControlActivity$2.class
│ │ │ │ ├── DeviceControlActivity$3$1.class
│ │ │ │ ├── DeviceControlActivity$3$2.class
│ │ │ │ ├── DeviceControlActivity$3.class
│ │ │ │ ├── DeviceControlActivity$4.class
│ │ │ │ ├── DeviceControlActivity.class
│ │ │ │ ├── DeviceScanActivity$1.class
│ │ │ │ ├── DeviceScanActivity$2$1.class
│ │ │ │ ├── DeviceScanActivity$2.class
│ │ │ │ ├── DeviceScanActivity$LeDeviceListAdapter.class
│ │ │ │ ├── DeviceScanActivity$ViewHolder.class
│ │ │ │ ├── DeviceScanActivity.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
│ │ │ ├── incremental
│ │ │ │ ├── aidl
│ │ │ │ │ └── debug
│ │ │ │ │ ├── dependency.store
│ │ │ │ │ ├── inputs.data
│ │ │ │ │ └── outputs.data
│ │ │ │ ├── dex
│ │ │ │ │ └── debug
│ │ │ │ │ ├── inputs.data
│ │ │ │ │ └── outputs.data
│ │ │ │ ├── mergeAssets
│ │ │ │ │ └── debug
│ │ │ │ │ ├── inputs.data
│ │ │ │ │ ├── merger.xml
│ │ │ │ │ └── outputs.data
│ │ │ │ └── mergeResources
│ │ │ │ └── debug
│ │ │ │ ├── inputs.data
│ │ │ │ ├── merger.xml
│ │ │ │ └── outputs.data
│ │ │ ├── libs
│ │ │ │ ├── BluetoothLeGattSample-debug.ap_
│ │ │ │ └── BluetoothLeGattSample-debug.dex
│ │ │ ├── manifests
│ │ │ │ └── debug
│ │ │ │ └── AndroidManifest.xml
│ │ │ ├── res
│ │ │ │ └── all
│ │ │ │ └── debug
│ │ │ │ ├── drawable-hdpi
│ │ │ │ │ ├── ic_launcher.png
│ │ │ │ │ └── tile.9.png
│ │ │ │ ├── drawable-mdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── drawable-xhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── drawable-xxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── layout
│ │ │ │ │ ├── actionbar_indeterminate_progress.xml
│ │ │ │ │ ├── activity_main.xml
│ │ │ │ │ ├── dialog.xml
│ │ │ │ │ ├── gatt_services_characteristics.xml
│ │ │ │ │ └── listitem_device.xml
│ │ │ │ ├── menu
│ │ │ │ │ ├── gatt_services.xml
│ │ │ │ │ └── main.xml
│ │ │ │ ├── values
│ │ │ │ │ └── values.xml
│ │ │ │ └── values-sw600dp
│ │ │ │ └── values.xml
│ │ │ └── source
│ │ │ ├── buildConfig
│ │ │ │ └── debug
│ │ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── android
│ │ │ │ └── bluetoothlegatt
│ │ │ │ └── BuildConfig.java
│ │ │ └── r
│ │ │ └── debug
│ │ │ └── com
│ │ │ └── example
│ │ │ └── android
│ │ │ └── bluetoothlegatt
│ │ │ └── R.java
│ │ ├── build.gradle
│ │ └── src
│ │ └── main
│ │ ├── AndroidManifest.xml
│ │ ├── java
│ │ │ └── com
│ │ │ └── example
│ │ │ └── android
│ │ │ └── bluetoothlegatt
│ │ │ ├── BluetoothLeService.java
│ │ │ ├── DeviceControlActivity.java
│ │ │ ├── DeviceScanActivity.java
│ │ │ └── SampleGattAttributes.java
│ │ └── res
│ │ ├── drawable-hdpi
│ │ │ ├── ic_launcher.png
│ │ │ └── tile.9.png
│ │ ├── drawable-mdpi
│ │ │ └── ic_launcher.png
│ │ ├── drawable-xhdpi
│ │ │ └── ic_launcher.png
│ │ ├── drawable-xxhdpi
│ │ │ └── ic_launcher.png
│ │ ├── layout
│ │ │ ├── actionbar_indeterminate_progress.xml
│ │ │ ├── activity_main.xml
│ │ │ ├── dialog.xml
│ │ │ ├── gatt_services_characteristics.xml
│ │ │ └── listitem_device.xml
│ │ ├── menu
│ │ │ ├── gatt_services.xml
│ │ │ └── main.xml
│ │ ├── values
│ │ │ ├── base-strings.xml
│ │ │ ├── strings.xml
│ │ │ ├── template-dimens.xml
│ │ │ └── template-styles.xml
│ │ └── values-sw600dp
│ │ ├── template-dimens.xml
│ │ └── template-styles.xml
│ ├── build.gradle
│ ├── gen
│ │ └── com
│ │ └── example
│ │ └── bluetooth
│ │ └── le
│ │ ├── BuildConfig.java
│ │ └── R.java
│ ├── gradle
│ │ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
│ ├── gradlew
│ ├── gradlew.bat
│ ├── lint.xml
│ ├── local.properties
│ ├── project.properties
│ ├── README.txt
│ ├── res
│ │ ├── drawable-hdpi
│ │ │ ├── ic_launcher1.png
│ │ │ └── ic_launcher.png
│ │ ├── drawable-ldpi
│ │ │ └── ic_launcher.png
│ │ ├── drawable-mdpi
│ │ │ ├── ic_launcher1.png
│ │ │ └── ic_launcher.png
│ │ ├── drawable-xhdpi
│ │ │ └── ic_launcher.png
│ │ ├── drawable-xxhdpi
│ │ │ ├── ic_launcher1.png
│ │ │ └── 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
│ │ └── strings.xml
│ ├── settings.gradle
│ └── src
│ └── com
│ └── example
│ └── bluetooth
│ └── le
│ ├── BluetoothLeService.java
│ ├── DeviceControlActivity.java
│ ├── DeviceScanActivity.java
│ └── SampleGattAttributes.java
├── JDY-08透传.apk
├── JDY-10(PCB封装.LIB
├── JDY-10蓝牙4.0模块V1.8.doc
├── 串口调试助手.exe
└── 串口调试助手.ini
99 directories, 162 files