腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
BLE
BluetoothAdapter.getBluetoothLeScanner
()
错误
android
、
bluetooth
、
bluetooth-lowenergy
、
adapter
、
android-adapter
但我有以下
错误
。
浏览 0
提问于2017-02-27
得票数 0
1
回答
不管怎么说,是否有模拟飞机启动和关闭模式?(BluetoothLeScanner有时没有检测到任何信号)
android
、
bluetooth
、
bluetooth-lowenergy
(这个问题可以通过多次运行下面的代码来重现,扫描器会有一段时间不能工作)
bluetoothAdapter.getBluetoothLeScanner
().startScan(mScanCallback); 我试图通过编程重新启动BluetoothLeScanner,并手动打开和关闭wifi +蓝牙,但它没有工作,总是需要等待大约10秒,直到系统检测到
BLE
信号。我最终打开和关闭飞机模式,一切正常工作(每次工作
浏览 8
提问于2022-01-26
得票数 1
回答已采纳
1
回答
屏幕锁定时无法运行
ble
scanner
android
、
bluetooth-lowenergy
、
beacon
我正在运行一个前台服务来扫描
ble
设备,当手机没有锁定时,它工作得很好。但当手机被锁定时,扫描仪无法检测到附近的任何设备。当电话被锁定时,扫描的计数始终为0。filters.add(uuidFilter) scanLeDevice(true) } }, SCANNING_INTERVEL)
bluet
浏览 32
提问于2020-10-17
得票数 1
2
回答
5.0崩溃
android
、
crash
、
bluetooth-lowenergy
我对android和
BLE
有问题,每当我扫描我的应用程序崩溃时,我都不知道原因。我使用的是startLeScan(),这是原因吗?下面是我的代码示例。 mCallback.onSensorDiscovered(sensortag);}; 下面是我初始化ScanCall的地方,以及看起来
错误
的地方-- java /
浏览 5
提问于2015-06-19
得票数 2
回答已采纳
1
回答
使用targetSdkVersion29,无法发现
BLE
设备
bluetooth-lowenergy
当targetsdkversion设置为28时,可以正常搜索
ble
设备。我的代码如下
bluetoothAdapter.getBluetoothLeScanner
浏览 1
提问于2020-11-27
得票数 0
0
回答
BLE
后台扫描
android
、
android-ble
我正在运行后台服务,使用使用START_STICKY运行的Android
BLE
API.My服务全天候扫描
BLE
设备。当我找到一个特定的设备时,我会做我的工作。BluetoothAdapter bluetoothAdapter = bluetoothManager.getAdapter(); BluetoothLeScanner lEScanner =
bluetoothAdapter.getBluetoothLeScanner
浏览 14
提问于2017-06-07
得票数 3
1
回答
当工作完成后无法停止工作人员(ListenableWorker)任务
android
、
worker
我的员工启动并试图找到特定的
BLE
设备。 bluetoothAdapter = bluetoothManager.getAdapter();
bluetoothAdapter
浏览 2
提问于2019-08-26
得票数 6
回答已采纳
4
回答
BluetoothAdapter不会停止扫描
BLE
设备
android
、
bluetooth-lowenergy
、
android-bluetooth
在我的应用程序中,我有启动和停止按钮,当用户按下启动按钮时,我调用startScan方法
bluetoothAdapter.getBluetoothLeScanner
().startScan(getLeScanCallback
bluetoothAdapter.getBluetoothLeScanner
().stopScan(getLeScanCallback()); 下面是我的getLeScanCallback方法: private换句话说,如何停止扫描
BLE
设备?
浏览 82
提问于2017-01-31
得票数 12
回答已采纳
1
回答
在Java中没有初始化和使用的字段声明
java
、
android
、
android-bluetooth
、
android-api-levels
LeScanHandle _leScanHndl; * Initializes new instance of
BLE
Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED) _
bluetoothAdapter.getBluetoothLeScanner
null) if (B
浏览 3
提问于2016-06-28
得票数 1
回答已采纳
1
回答
对同一设备多次使用BluetoothLeScanner调用onScanResult进行扫描
android
、
bluetooth
、
bluetooth-lowenergy
我在android上使用
BLE
实现了一个简单的advertise + scan功能,出于某种原因,我收到了很多调用同一设备的onScanResult回调。(Context.BLUETOOTH_SERVICE);bluetoothLeScanner =
bluetoothAdapter.getBluetoothLeScanner
浏览 6
提问于2016-03-30
得票数 5
2
回答
BLE
扫描不能在后台使用android pie中的扫描过滤器吗?
java
、
android
、
bluetooth-lowenergy
、
android-9.0-pie
PendingIntent.getBroadcast(this.getApplicationContext(), 0, intent, PendingIntent.FLAG_UPDATE_CURRENT); // These contain the data of your matching
BLE
浏览 0
提问于2019-04-19
得票数 3
5
回答
对当前接口的startLeScan替换
android
、
bluetooth
、
bluetooth-lowenergy
目标是读取蓝牙LE心率监视器的值。private void scanLeDevice(final boolean enable) { // Stops scanning after a pre-defined scan period. @Override mScanning = false;
浏览 0
提问于2015-05-14
得票数 35
2
回答
扫描
BLE
装置不工作
android
、
bluetooth-lowenergy
、
android-bluetooth
、
scanning
、
gatt
因此,它开始扫描,然后继续前进,没有出现
错误
,但没有检测到任何设备。OnLEScan事件也会被触发,但其中的设备参数为null。我的LE设备就在那里连接着。
浏览 3
提问于2016-07-05
得票数 2
回答已采纳
3
回答
为什么当我将函数调用移动到另一个按钮时,我的
ble
应用程序会崩溃?
android
、
crash
、
bluetooth-lowenergy
、
psoc
我目前正在尝试让我正在开发的应用程序更容易使用,但我遇到了一个问题,试图合并建立到PSoC 4
BLE
连接所需的按钮量。最后,我想要一个按钮来处理搜索,连接和发现服务。//what I am trying to do startActivityForResult(enable
浏览 12
提问于2020-03-09
得票数 1
1
回答
安卓-多重BluetoothBleScanner
android
、
bluetooth
、
bluetoothadapter
、
bluetoothlescanner
现在,应用程序以几种不同的方式使用
BLE
。信标 在iOS下,解决方案很简单,因为应用程序可以根据需要创建尽可能多的CBCentralManager实例,并且在iOS下,这些请求将“合并”到硬件中,因此,我为"
BLE
信标“编写的JavascriptBluetoothAdapter单
浏览 2
提问于2018-02-01
得票数 0
2
回答
Android扫描和显示结果
android
、
bluetooth-lowenergy
在mainActivity中,我试图扫描
BLE
设备并在屏幕上打印结果。代码如下所示: final BluetoothLeScanner bluetoothLeScanner =
bluetoothAdapter.getBluetoothLeScanner
();
浏览 10
提问于2019-10-21
得票数 1
2
回答
基于PendingIntent的Android扫描
android
、
android-ble
几天前,我成功地让安卓用PendingIntents扫描了
BLE
设备。我今天很难让PendingIntent接收任何回调数据,我正在努力找出原因。pendingIntent = PendingIntent.getBroadcast(getApplicationContext(), 42, intent, 0); int scanRes =
bluetoothAdapter.getBluetoothLeScanner
浏览 0
提问于2018-10-21
得票数 0
2
回答
Android
BLE
发现问题
java
、
android
、
bluetooth
、
bluetooth-lowenergy
return(scanLeDevice21(true)); return(scanLeDevice18(true)); * Scan
BLE
scan@RequiresApi(21){ if (bluetoothLeScanner == nu
浏览 0
提问于2018-12-10
得票数 0
回答已采纳
3
回答
安卓:添加ScanCallback给了我“不幸的是,应用程序已经停止了。”找不到MainActivity
android
、
bluetooth
、
android-ble
If I take it out, then I see my Hello World activity.LogCat
错误
: 09-15 19:16:17.503 1878-1878/com.roberts.croberts.mantis
浏览 5
提问于2015-09-16
得票数 3
回答已采纳
1
回答
蓝牙低能startLeScan被弃用
java
我目前正在为android开发一个应用程序,它使用蓝牙低能量连接到IOS设备,这样他们就可以相互传输数据。android设备将是我的中心设备,IOS设备是外围设备。然而,由于这个应用程序是在一段时间前创建的,搜索设备的startLeScan方法已经被废弃,在做了一些研究之后,我知道startScan()是我应该使用的新方法。但是,在我的program.Can中实现这个新方法很困难有人在编辑我的代码以包含新的方法?import android.bluetooth.BluetoothAdapter; import android.bluetooth.Bluet
浏览 1
提问于2017-08-03
得票数 2
点击加载更多
相关
资讯
BLE安全入门及实战(2)
BLE蓝牙透传模块应用于智能门锁方案介绍
基于 Telink TLSR8266的BLE Mesh 智能照明系统方案
业界性价比高的通用BLE射频前端芯片MG126
Android Things 教程:与低功耗蓝牙 BLE 设备进行通讯——Android 部分
热门
标签
更多标签
云服务器
对象存储
ICP备案
云点播
语音识别
活动推荐
运营活动
广告
关闭
领券