E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
【Bluetooth】
Android 蓝牙API详解和连接使用
2.蓝牙权限:android.permission.
BLUETOOTH
:允许程序连接到已配对的蓝牙设备,请求连接/接收连接/传输数据需要改权限,主要用于对配对后进行操作
常军永
·
2020-08-10 00:07
android蓝牙开发---与蓝牙模块进行通信
如何开启蓝牙设备和设置可见时间:首先,需要获得一个
Bluetooth
Adapter,可以通过getDefaultAdapter()获得系统默认的蓝牙适配器,如果没有,通过enable()方法打开。
arcknews
·
2020-08-09 23:21
java
蓝牙模块
Android BLE低功耗蓝牙开发(下) BLE客户端(中央设备)与GATT服务的通讯
然后,本来是要写Android开发之
BlueTooth
--最简单的Andorid低功耗(BLE)蓝牙通讯Demo的,写了一半发现BLE简单不起来,所以分两篇来写BLE相关的应用。
天才小汪汪
·
2020-08-09 23:46
Android小知识
android 传统蓝牙开发
1.获得蓝牙适配器m
Bluetooth
Adapter=
Bluetooth
Adapter.getDefaultAdapter();2.蓝牙的打开和关闭if(!
qq_34308292
·
2020-08-09 23:44
三、筛选蓝牙信息并连接(安卓蓝牙ble教程)
MainActivity.java注:如果复制代码进项目时显示红色,请按ALT+ENTER键导包(importclass)packageclub.stm32;importandroid.Manifest;importandroid.
bluetooth
.
Bluetooth
Adapter
无聊达612
·
2020-08-09 23:42
ble
蓝牙
android
java
7、停止搜索蓝牙设备(stop
Bluetooth
DevicesDiscovery)
wx.stop
Bluetooth
DevicesDiscovery(Objectobject)基础库1.1.0开始支持,低版本需做兼容处理。停止搜寻附近的蓝牙外围设备。
无聊达612
·
2020-08-09 23:42
微信小程序
js
四、
Bluetooth
GattCallback回调函数(安卓蓝牙ble教程)
MainActivity.java注:如果复制代码进项目时显示红色,请按ALT+ENTER键导包(importclass)packageclub.stm32;importandroid.Manifest;importandroid.
bluetooth
.
Bluetooth
Adapter
无聊达612
·
2020-08-09 23:42
android
java
ble
蓝牙
蓝牙通信UUID
开发者可以自定义这些128位的UUID,也可以采用
Bluetooth
SIG已定义的标准。1.概念SDP协议让客户机的应用程序发现存在的服务器应用程序提供的服务以及这些服务的属性。
雨微尘
·
2020-08-09 23:01
蓝牙
Android BLE最完整的工具类(扫描/连接/读写/通知设备)
bleUtil工具中,有些地方我感觉还是要提示下1、characterUUID1、characterUUID2、descriptorUUID这三个是对应的收发命令的,跟找到要操作的
Bluetooth
GattDescriptor
骚剑客
·
2020-08-09 23:53
Android
Android 蓝牙自动配对连接
蓝牙工具类:publicclassBTReceiverUtils{/***与设备配对*/staticpublicbooleancreateBond(ClassbtClass,
Bluetooth
DevicebtDevice
骑驴望星空
·
2020-08-09 23:20
Android
应用内跳转到设置页面
NSString*defaultWork=[selfgetDefaultWork];NSString*
bluetooth
Method=[selfget
Bluetooth
Method];NSURL*url
于海明
·
2020-08-09 23:16
iOS搜集的知识
android 蓝牙4.0开发心得(一)蓝牙搜索
getPackageManager().hasSystemFeature(PackageManager.FEATURE_
BLUETOOTH
_LE))
man_dzy
·
2020-08-09 23:50
Android
android5.0和android6.0ble开发时要注意的两点
于是去网上搜了一下得到下面的回答:扫描BLE蓝牙设备,对于4.3以上的系统,直接调用startLeScan(
Bluetooth
Adapter.LeScanCallbackcallback)即可扫描出BLE
Ali_522
·
2020-08-09 23:19
Android BLE 蓝牙开发框架
FastBleAndroid
Bluetooth
LowEnergy蓝牙快速开发框架。使用简单的方式进行搜索、连接、读写、通知的订阅与取消等一系列蓝牙操作,并实时地得到操作反馈。
qq_594336505
·
2020-08-09 23:23
Android高级开发
Android开源框架
Android中
Bluetooth
Adapter.startDiscovery方法搜索蓝牙设备不起作用的解决办法
新项目一个关于连接蓝牙打印机的功能,在网上找了许多例子,但是都搜索不到蓝牙设备,经过多台手机测试,在android系统6.0之前的是可以搜索到设备的,但是在6.0之后的搜索不到,找到问题后原来是在android6.0之后api更换了权限导致的加上以上两个权限就可以解决在6.0系统搜索不到蓝牙设备的问题了。
开开_心心_敲代码
·
2020-08-09 23:13
Android
Bluetooth
Low Energy(Android低功耗蓝牙)
Android4.3(APILevel18)开始引入
Bluetooth
LowEnergy(BLE,低功耗蓝牙)的核心功能并提供了相应的API,应用程序通过这些api可以扫描设备、查询services,读写设备的
林佳楠
·
2020-08-09 23:31
Android
Android系统 蓝牙模块
ZERO,蓝牙模块的fragment及其配置1>,首先由Settings_headers.xml文件可以知道,蓝牙对应的fragment为
Bluetooth
Settings.Java,对应的id,icon
qeqeqe236
·
2020-08-09 22:51
蓝牙
[Sg] Android 6.0 系统Setting 蓝牙扫描分析
蓝牙设置页面源码位置com.android.settings.
bluetooth
.
Bluetooth
Settings1.该界面点击开启蓝牙开关后的调用startScanning()方法publicvoidstartScanning
pq5357
·
2020-08-09 22:37
framework
Android蓝牙开发(一)蓝牙模块及核心API
蓝牙模块从蓝牙4.0开始包含两个蓝牙芯片模块:传统/经典蓝牙模块(Classic
Bluetooth
,简称BT)和低功耗蓝牙(
Bluetooth
LowEnergy,简称BLE)。
几圈年轮
·
2020-08-09 22:44
Android framework 蓝牙开机连接慢与开机广播
Bluetooth
ManagerService相关代码如下,可以看到,自动打开蓝牙的流程是接收开机广播实现的。
wusc'blog
·
2020-08-09 22:03
Android
Android 蓝牙(BLE)连接,发送,接收消息
MainActivitypackagecom.example.lihui.
bluetooth
;importandroid.app.Activity;importandroid.
bluetooth
.
Bluetooth
Adapter
muhuitao
·
2020-08-09 22:53
Android
android开发之手机与单片机蓝牙模块通信
packagecom.example.fsl.
bluetooth
;importandroid.app.Activity;importandroid.
bluetooth
.
冯爽朗
·
2020-08-09 22:01
Android开发
android 传统蓝牙开发(一):打开/关闭蓝牙设备
1.声明权限2.获取本地蓝牙适配器
Bluetooth
Adapter
bluetooth
Adapter=
Bluetooth
Adapter.getDefaultAdapter();3.打开本地蓝牙打开蓝牙有2
一直在路过
·
2020-08-09 22:01
Android笔记
Android蓝牙搜索设备,向其发送数据并接收-刘宇
蓝牙客户端Socket是
Bluetooth
Socket,蓝牙服务端Socket是
Bluetooth
ServerSocket。这两个类都在android.
bluetooth
包中。
BrycenLiu
·
2020-08-09 22:22
Android
Android开发总结之传统蓝牙自动连接
文章目录实现自动配对实现自动配对清单注册广播实现广播@OverridepublicvoidonReceive(Contextcontext,Intentintent){if(intent.getAction().equals("android.
bluetooth
.device.action.PAIRING_REQUEST
lijianbiao0
·
2020-08-09 22:46
Android核心技术
android5.0(Lollipop) BLE Central牛刀小试
搞过android4.4的人肯定对
Bluetooth
Adapter的startLeScan函数不会陌生,但是在androidL已经弃用此接口,但是为了兼容以前的版本
小姜的android之旅
·
2020-08-09 21:08
android
bluetooth
Android ble onCharacteristicChanged()无法触发
最近碰到一个比较蛋疼的问题,同一个APP,运行在不同的手机设备上,onCharacteristicChanged在部分设备上没有回调.m
Bluetooth
Gatt.setCharacteristicNotification
Kieven2oo8
·
2020-08-09 21:47
android
Bluetooth
开发(二):打开、关闭、搜索、允许搜索、查看
相关项目的下载链接本项目:点击打开链接继本项目之后实现了语音识别:点击打开链接1.承接上一篇文章,本篇文章主要实现了蓝牙的打开关闭允许搜索查看配对设备2.
Bluetooth
Init,主要实现了部件的初始化
Amarao
·
2020-08-09 21:36
android
传感器
Android开发
Android BLE 蓝牙低功耗教程,中央
Bluetooth
Gatt和周边
Bluetooth
GattServer的实现
Android4.3规范了BLE的API,但是直到目前的4.4,还有些功能不完善。在BLE协议中,有两个角色,周边(Periphery)和中央(Central);周边是数据提供者,中央是数据使用/处理者;在iOSSDK里面,可以把一个iOS设备作为一个周边,也可以作为一个中央;但是在AndroidSDK里面,直到目前最新的Android4.4.2,Android手机只能作为中央来使用和处理数据;那
Chris_Wang1
·
2020-08-09 21:32
BLE
Android
Android 开发中 iBeacon的使用
iBeacon的工作原理是基于
Bluetooth
LowEnergy(BLE)低功耗蓝牙传输技术,iBeacon基站不断向四周发送蓝牙信号,当智能设备进入设定区域时,就能够收到信号。
怎么连话都说不清楚
·
2020-08-09 21:57
Android开发进阶
iBeacon
android
蓝牙
android 蓝牙
Bluetooth
Adapter扫描、获蓝牙设备、已联设备列表
效果:publicclassMainActivityextendsAppCompatActivity{privatestaticfinalStringTAG="MainActivity";privateListlist;privateRecyclerViewrecyclerView;privateMyRecycleViewAdapteradapter;privateButtonbtn;Blueto
jian11058
·
2020-08-09 21:21
Why Android BLE method startLeScan failed to filter by custom 128bit uuid?
February18,2014Let'scheckthestartLeScanmethoddeclaration.publicbooleanstartLeScan(UUID[]serviceUuids,
Bluetooth
Adapter
johnny-huang
·
2020-08-09 21:02
android学习
Android蓝牙开发
1.首先,要操作蓝牙,先要在AndroidManifest.xml里加入权限//管理蓝牙设备的权限//使用蓝牙设备的权限2.打开蓝牙获得蓝牙适配器(android.
bluetooth
.
Bluetooth
Adapter
he_666
·
2020-08-09 21:03
蓝牙
ConnectivityManager里面的类型14种连接类型
intTYPE_MOBILE://移动数据连接,不能与连接共存,如果wifi打开,则自动关闭intTYPE_MOBILE_DUN://网络桥接,很老的一个网络提供了通过
Bluetooth
无线技术接入Internet
趟石过河
·
2020-08-09 20:13
原创精华帖
Android
WIFI
蓝牙功能框架
这是GitHub上的地址:https://github.com/Yangandmore/
Bluetooth
Handler(单连)https://github.com/Yan
羊羊爱代码
·
2020-08-09 20:11
Android
蓝牙
关于ble
bluetooth
notify/incate返回数据失序的讨论帖子
NotificationscanbereceivedoutoforderonAndroid:https://github.com/don/cordova-plugin-ble-central/issues/625Howcouldiachievemaximumthreadsafetywitharead/writeBLEGattCharacteristic?:https://stackoverflow
chenm91
·
2020-08-09 20:58
蓝牙通信
Android手机靠近蓝牙模块自动连接蓝牙模块,断后自动重连。也可以手机靠近手机自动连接。连接成功率百分之百,可后台运行
Bluetooth
Chat手机与串口模块通信靠近自动连接2.0apk示例:链接:https://pan.baidu.com/s/1YoMNNBfLTAuXm2XukG5s9g提取码:sm3h全球首创的新技术
小黄人软件
·
2020-08-09 20:57
创新与突破
Android复习
Android Ble notify功能踩坑
通过查阅文档和网上他人的博客找到开启notify功能的代码:privatevoidsetAutoReceiveData(
Bluetooth
Gattgatt){try{
Bluetooth
GattServicelinkLossService
cmlbeliever
·
2020-08-09 19:16
Android6.0的BLE通信
效果:示例:一、打开手机里的蓝牙importandroid.
bluetooth
.
Bluetooth
Adapter;importandroid.
bluetooth
.Bluet
谁把我名字用了!
·
2020-08-09 19:05
Android BLE 以Notify的方式接收数据
一、使用的Android自带的
bluetooth
importandroid.
bluetooth
.
Bluetooth
Devic
谁把我名字用了!
·
2020-08-09 19:05
android4.3
Bluetooth
(le)分析之startLeScan分析
Bluetooth
Adapter.java中有lowenery(le)的一些方法,android提供了这些方法,但源码中并未找到这些方法的调用之处。
aoshiwenrou
·
2020-08-09 19:59
Android
android
bluetooth
Android开发:IBeacon系列——安卓蓝牙4.0(BLE)开发之检测IBeacon热点初步
检测ibeacon热点信号软硬件要求:Android4.3及以上中支持BLE技术,同时蓝牙需要满足
Bluetooth
4.0及以上。
android157
·
2020-08-09 19:41
工具类
android-startLeScan
startLeScanAddedinAPIlevel18booleanstartLeScan(UUID[]serviceUuids,
Bluetooth
Adapter.LeScanCallbackcallback
zJianFlys
·
2020-08-09 19:39
翻译-android
运用蓝牙的步骤及方法的总结
我做的这个是连接一个自定义的模块(CC2540),profile是自定义的,用socket好像连接不上,我是用
Bluetooth
Gatt连接的。一般手机上的每一个Servic
Yiyi_G
·
2020-08-09 19:01
项目
Android
Bluetooth
Adapter stopLeScan和startLeScan注意事项
查看了下
Bluetooth
Adapter的源码stopLeSca
Tim3366
·
2020-08-09 19:51
Android
Android
Bluetooth
搜索不到附近设备的问题
前一阵子研究Android蓝牙的时候,在搜索设备时候怎么也搜索不到附近的蓝牙设备,也不报错,经过查阅了一下资料之后发现,在启动蓝牙搜索附近设备时会需要到LOCATION权限,AndroidM以下则只需要在清单中添加AndroidM以上则需要自行申请权限:privatestaticfinalintACCESS_LOCATION=1001;if(Build.VERSION.SDK_INT>Build.
Tao_Shixiong
·
2020-08-09 19:14
Android
蓝牙 可发送数据
蓝牙##客户端权限1.开启蓝牙privatevoidopen(){Intentintent=newIntent();intent.setAction(
Bluetooth
Adapter.ACTION_REQUEST_ENABLE
Miracles___
·
2020-08-09 18:53
Android 平台上蓝牙开发的关于 UUID 设置的注意事项
由于Android蓝牙的通信都需要用到UUID,如果由手机发起搜索,当搜索到电脑的蓝牙时,能够得到蓝牙的地址(address),但通信时需要得到
Bluetooth
Socket,而
Bluetooth
Socket
Android移动开发者
·
2020-08-09 18:31
应用开发(Android)
Android 蓝牙开发 自动连接已匹配设备时连接缓慢
Android蓝牙开发自动连接已匹配设备时连接缓慢
Bluetooth
Adapter的startDiscovery()方法是个耗资源操作所以需要在尝试配对时将其关闭。
GC_1996
·
2020-08-09 18:30
Android——搜索传统蓝牙设备
一,主布局:二,列表Item三,蓝牙权限配置四,activity上代码packagecom.woasis.batteries.activity;importandroid.
bluetooth
.
Bluetooth
Adapter
weixin_33852020
·
2020-08-09 17:11
移动开发
java
上一页
32
33
34
35
36
37
38
39
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他