Android BLE开发之Android手机与BLE终端通信 程序文件

上传者: hellogv | 上传时间: 2019-12-21 19:51:44 | 文件大小: 208KB | 文件类型: zip
最近穿戴设备发展得很火,把相关技术也带旺了,其中一项是BLE(Bluetooth Low Energy)。BLE是蓝牙4.0的核心Profile,主打功能是快速搜索,快速连接,超低功耗保持连接和传输数据,弱点是数据传输速率低,由于BLE的低功耗特点,因此普遍用于穿戴设备。Android 4.3才开始支持BLE API,所以请各位客官把本文代码运行在蓝牙4.0和Android 4.3及其以上的系统,另外本文所用的BLE终端是一个蓝牙4.0的串口蓝牙模块。 PS:我的i9100刷了4.4系统后,竟然也能跟BLE蓝牙模块通信。

文件下载

资源详情

[{"title":"( 56 个子文件 208KB ) Android BLE开发之Android手机与BLE终端通信 程序文件","children":[{"title":"BluetoothLeGatt","children":[{"title":".project <span style='color:#111;'> 851B </span>","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'> 563B </span>","children":null,"spread":false},{"title":"lint.xml <span style='color:#111;'> 53B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"com","children":[{"title":"example","children":[{"title":"bluetooth","children":[{"title":"le","children":[{"title":"LeDeviceListAdapter.java <span style='color:#111;'> 2.18KB </span>","children":null,"spread":false},{"title":"DeviceScanActivity.java <span style='color:#111;'> 10.11KB </span>","children":null,"spread":false},{"title":"Utils.java <span style='color:#111;'> 5.75KB </span>","children":null,"spread":false},{"title":"BluetoothLeClass.java <span style='color:#111;'> 9.99KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'> 1.94KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 5.05KB </span>","children":null,"spread":false}],"spread":true},{"title":"menu","children":[{"title":"gatt_services.xml <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false},{"title":"main.xml <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.95KB </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"listitem_device.xml <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false},{"title":"gatt_services_characteristics.xml <span style='color:#111;'> 3.31KB </span>","children":null,"spread":false},{"title":"actionbar_indeterminate_progress.xml <span style='color:#111;'> 942B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 12.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 7.06KB </span>","children":null,"spread":false}],"spread":true},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 1.62KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".settings","children":[{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 177B </span>","children":null,"spread":false}],"spread":true},{"title":"gen","children":[{"title":"com","children":[{"title":"example","children":[{"title":"bluetooth","children":[{"title":"le","children":[{"title":"BuildConfig.java <span style='color:#111;'> 166B </span>","children":null,"spread":false},{"title":"R.java <span style='color:#111;'> 2.49KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".classpath <span style='color:#111;'> 491B </span>","children":null,"spread":false},{"title":"proguard-project.txt <span style='color:#111;'> 781B </span>","children":null,"spread":false},{"title":"ic_launcher-web.png <span style='color:#111;'> 36.23KB </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"resources.ap_ <span style='color:#111;'> 28.51KB </span>","children":null,"spread":false},{"title":"classes","children":[{"title":"com","children":[{"title":"example","children":[{"title":"bluetooth","children":[{"title":"le","children":[{"title":"R$layout.class <span style='color:#111;'> 532B </span>","children":null,"spread":false},{"title":"BluetoothLeClass$OnDisconnectListener.class <span style='color:#111;'> 322B </span>","children":null,"spread":false},{"title":"DeviceScanActivity.class <span style='color:#111;'> 9.42KB </span>","children":null,"spread":false},{"title":"BuildConfig.class <span style='color:#111;'> 357B </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 425B </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 358B </span>","children":null,"spread":false},{"title":"LeDeviceListAdapter.class <span style='color:#111;'> 2.92KB </span>","children":null,"spread":false},{"title":"BluetoothLeClass$OnDataAvailableListener.class <span style='color:#111;'> 502B </span>","children":null,"spread":false},{"title":"DeviceScanActivity$4.class <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false},{"title":"DeviceScanActivity$3.class <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false},{"title":"DeviceScanActivity$2.class <span style='color:#111;'> 2.16KB </span>","children":null,"spread":false},{"title":"DeviceScanActivity$1.class <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'> 738B </span>","children":null,"spread":false},{"title":"BluetoothLeClass$1.class <span style='color:#111;'> 3.39KB </span>","children":null,"spread":false},{"title":"BluetoothLeClass$OnServiceDiscoverListener.class <span style='color:#111;'> 337B </span>","children":null,"spread":false},{"title":"BluetoothLeClass$OnConnectListener.class <span style='color:#111;'> 313B </span>","children":null,"spread":false},{"title":"Utils.class <span style='color:#111;'> 3.79KB </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 625B </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 1024B </span>","children":null,"spread":false},{"title":"DeviceScanActivity$3$1.class <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false},{"title":"R$menu.class <span style='color:#111;'> 443B </span>","children":null,"spread":false},{"title":"BluetoothLeClass.class <span style='color:#111;'> 6.32KB </span>","children":null,"spread":false},{"title":"LeDeviceListAdapter$ViewHolder.class <span style='color:#111;'> 654B </span>","children":null,"spread":false},{"title":"DeviceScanActivity$5.class <span style='color:#111;'> 1.10KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 1.94KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 4.09KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.48KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 9.39KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 5.58KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"classes.dex <span style='color:#111;'> 21.64KB </span>","children":null,"spread":false},{"title":"BluetoothLeGatt.apk <span style='color:#111;'> 40.77KB </span>","children":null,"spread":false}],"spread":true}],"spread":false}],"spread":true}]

评论信息

  • LiChongConquer :
    可以用,可以用
    2021-05-11
  • niejc :
    还没有尝试,不过应该蛮不错
    2019-09-30
  • westerntower :
    可以使用,很方便
    2019-09-16
  • 锅哥 :
    没有什么参考价值
    2019-08-21
  • crazymaple213 :
    可以用可以用
    2019-05-31

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明