Android代码-BleLib

上传者: 39840914 | 上传时间: 2020-01-03 11:39:33 | 文件大小: 232KB | 文件类型: zip
BleLib BleLib 是 Android 低功耗蓝牙 4.0 及以上开发的辅助库,一行代码解决 Ble 初始化、扫描、连接、特性读写、设置通知等操作。 BleLib 中的关键类: BleService 是单个 Ble 连接操作的服务类 GattAttributes 类中包含了蓝牙联盟规定的服务和特征的 UUID 值 MultipleBleService 类是可多个蓝牙设备同时连接的服务类 Screenshots Usage 可看博客: 使用 BleLib 的轻松搞定 Android 低功耗蓝牙 Ble 4.0 开发详解 引入 BleLib 库已上传至 jcenter、maven central 仓库 因此,在你项目 Module 中的 build.gradle 文件中添加库依赖即可,如下: Gradle: dependencies { compile 'com.junkchen.blelib:blelib:1.2.4' } 只此一句即可使用 BleLib 库,方便吧,要的就是这效果。 BleLib 中的 Ble 继承了 Service,因此建议绑定服务进

文件下载

资源详情

[{"title":"( 64 个子文件 232KB ) Android代码-BleLib","children":[{"title":"BleLib-master","children":[{"title":"gradlew <span style='color:#111;'> 4.85KB </span>","children":null,"spread":false},{"title":"settings.gradle <span style='color:#111;'> 29B </span>","children":null,"spread":false},{"title":".idea","children":[{"title":"runConfigurations.xml <span style='color:#111;'> 564B </span>","children":null,"spread":false},{"title":"misc.xml <span style='color:#111;'> 2.17KB </span>","children":null,"spread":false},{"title":"compiler.xml <span style='color:#111;'> 686B </span>","children":null,"spread":false},{"title":"dictionaries","children":[{"title":"Administrator.xml <span style='color:#111;'> 92B </span>","children":null,"spread":false}],"spread":true},{"title":"gradle.xml <span style='color:#111;'> 776B </span>","children":null,"spread":false},{"title":"encodings.xml <span style='color:#111;'> 159B </span>","children":null,"spread":false},{"title":"modules.xml <span style='color:#111;'> 470B </span>","children":null,"spread":false},{"title":"copyright","children":[{"title":"profiles_settings.xml <span style='color:#111;'> 74B </span>","children":null,"spread":false}],"spread":true},{"title":"vcs.xml <span style='color:#111;'> 180B </span>","children":null,"spread":false}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 11.09KB </span>","children":null,"spread":false},{"title":"gradle","children":[{"title":"wrapper","children":[{"title":"gradle-wrapper.properties <span style='color:#111;'> 230B </span>","children":null,"spread":false},{"title":"gradle-wrapper.jar <span style='color:#111;'> 52.38KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"README.md <span style='color:#111;'> 6.46KB </span>","children":null,"spread":false},{"title":"sample","children":[{"title":"src","children":[{"title":"androidTest","children":[{"title":"java","children":[{"title":"com","children":[{"title":"junkchen","children":[{"title":"blelib","children":[{"title":"sample","children":[{"title":"ApplicationTest.java <span style='color:#111;'> 357B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"test","children":[{"title":"java","children":[{"title":"com","children":[{"title":"junkchen","children":[{"title":"blelib","children":[{"title":"sample","children":[{"title":"ExampleUnitTest.java <span style='color:#111;'> 319B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"AndroidManifest.xml <span style='color:#111;'> 845B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"mipmap-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.34KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xxxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 10.24KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 4.73KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.15KB </span>","children":null,"spread":false}],"spread":false},{"title":"layout","children":[{"title":"activity_characteristic.xml <span style='color:#111;'> 1.31KB </span>","children":null,"spread":false},{"title":"activity_ble_scan.xml <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false},{"title":"item_device.xml <span style='color:#111;'> 2.00KB </span>","children":null,"spread":false},{"title":"activity_main.xml <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false}],"spread":false},{"title":"values-w820dp","children":[{"title":"dimens.xml <span style='color:#111;'> 358B </span>","children":null,"spread":false}],"spread":false},{"title":"values","children":[{"title":"colors.xml <span style='color:#111;'> 208B </span>","children":null,"spread":false},{"title":"strings.xml <span style='color:#111;'> 517B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 383B </span>","children":null,"spread":false},{"title":"dimens.xml <span style='color:#111;'> 211B </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 7.54KB </span>","children":null,"spread":false},{"title":"ic_bluetooth_black_36dp.png <span style='color:#111;'> 448B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"junkchen","children":[{"title":"blelib","children":[{"title":"sample","children":[{"title":"MultipleBleActivity.java <span style='color:#111;'> 15.47KB </span>","children":null,"spread":false},{"title":"BleScanActivity.java <span style='color:#111;'> 18.52KB </span>","children":null,"spread":false},{"title":"MainActivity.java <span style='color:#111;'> 1.45KB </span>","children":null,"spread":false},{"title":"CharacteristicActivity.java <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false},{"title":"adapter","children":[{"title":"CommonAdapter.java <span style='color:#111;'> 1.94KB </span>","children":null,"spread":false},{"title":"ViewHolder.java <span style='color:#111;'> 3.36KB </span>","children":null,"spread":false}],"spread":false},{"title":"MyGattAttributes.java <span style='color:#111;'> 1.36KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"screenshots","children":[{"title":"connect_single_device.png <span style='color:#111;'> 43.21KB </span>","children":null,"spread":false},{"title":"connect_multiple_devices.png <span style='color:#111;'> 43.67KB </span>","children":null,"spread":false}],"spread":true},{"title":".gitignore <span style='color:#111;'> 7B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 764B </span>","children":null,"spread":false},{"title":"proguard-rules.pro <span style='color:#111;'> 658B </span>","children":null,"spread":false}],"spread":true},{"title":"gradlew.bat <span style='color:#111;'> 2.26KB </span>","children":null,"spread":false},{"title":"gradle.properties <span style='color:#111;'> 855B </span>","children":null,"spread":false},{"title":"blelib","children":[{"title":"src","children":[{"title":"androidTest","children":[{"title":"java","children":[{"title":"com","children":[{"title":"junkchen","children":[{"title":"blelib","children":[{"title":"ApplicationTest.java <span style='color:#111;'> 350B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"test","children":[{"title":"java","children":[{"title":"com","children":[{"title":"junkchen","children":[{"title":"blelib","children":[{"title":"ExampleUnitTest.java <span style='color:#111;'> 312B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true},{"title":"main","children":[{"title":"AndroidManifest.xml <span style='color:#111;'> 822B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 680B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"java","children":[{"title":"com","children":[{"title":"junkchen","children":[{"title":"blelib","children":[{"title":"MultipleBleService.java <span style='color:#111;'> 30.23KB </span>","children":null,"spread":false},{"title":"Constants.java <span style='color:#111;'> 1.43KB </span>","children":null,"spread":false},{"title":"GattAttributes.java <span style='color:#111;'> 39.76KB </span>","children":null,"spread":false},{"title":"BleService.java <span style='color:#111;'> 28.36KB </span>","children":null,"spread":false},{"title":"BleListener.java <span style='color:#111;'> 5.03KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 11.09KB </span>","children":null,"spread":false},{"title":"bintray.gradle <span style='color:#111;'> 1.37KB </span>","children":null,"spread":false},{"title":"install.gradle <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 7B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 1.92KB </span>","children":null,"spread":false},{"title":"proguard-rules.pro <span style='color:#111;'> 658B </span>","children":null,"spread":false}],"spread":true},{"title":".gitignore <span style='color:#111;'> 97B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 644B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

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