cost 235 ms
Android设备的蓝牙地址是否会在一段时间后改变? - Does the bluetooth address of Android device changes after some time?

我问这个问题是因为我想创建一个应用程序,根据手机的蓝牙地址存储用户的数据。 我们可以使用蓝牙根据那个蓝牙地址分享他的个人资料。 有人说蓝牙地址会在一段时间后改变。 这是真的吗? ...

BluetoothAdapter StartDiscovery 在前台服务中不起作用 - BluetoothAdapter StartDiscovery does not work in Foreground Service

我的应用程序启动了一项检测手机抖动的服务。 当服务检测到震动时,它会搜索范围内的 BT 设备,如果找到合适的设备,它会连接到该设备并向其发送数据。 为了检查系统是否正在终止服务,我在检测到震动时打开震动。 当 Activity 在主屏幕上时,一切正常。 但是,当我关闭 Activity 时,服务 ...

为什么 android.bluetooth.BluetoothAdapter#listenUsingL2capOn(int) 无法访问? - Why is android.bluetooth.BluetoothAdapter#listenUsingL2capOn(int) not accessible?

这可能是一个新手问题,因为我对 Android 的经验有限,但由于某种原因,我无法访问方法android.bluetooth.BluetoothAdapter#listenUsingL2capOn(int) 。 它似乎是公开的,因此不确定为什么该符号未被识别。 另一方面,如何在 android 上 ...

如何在我的 Android 应用程序中解决此 NullPointer 错误? - How can I solve this NullPointer error in my Android app?

我在 android studio 中制作了一个屏幕,用于管理蓝牙的某些方面,例如搜索设备、打开和关闭等。 当我运行应用程序时出现问题,将蓝牙图像从打开更改为关闭时出现 NullPointer 错误,反之亦然。 到目前为止我的代码(简化): 我在这里得到 NullPointer 异常: 错 ...

我的Java代码无法搜索附近的蓝牙设备 - My java code could not search for nearby Bluetooth Devices

我已经写了一个代码以列出附近的蓝牙设备,但是我的代码无法检测到任何蓝牙设备。 根据我的代码,当我执行String action = intent.getAction();时,该操作只是开始和结束而不会在日志中打印任何设备。 Log.i(“ Action”,action); 在BroadCa ...

java.lang.NoSuchMethodError:org.altbeacon.beacon中的android.bluetoothAdapter.getBluetoothLeAdvertiser - java.lang.NoSuchMethodError: android.bluetoothAdapter.getBluetoothLeAdvertiser at org.altbeacon.beacon

在华硕,三星平板电脑上运行操作系统版本4.4.2 Android Beacon Library版本时出错。 低于问题。 我尝试更新库,处理崩溃但仍能看到以下错误: - java.lang.NoSuchMethodError:com.mangomirror.app.acti ...

registerReceiver BluetoothAdapter.ACTION_STATE_CHANGED不起作用 - registerReceiver BluetoothAdapter.ACTION_STATE_CHANGED not working

我正在使用Android Oreo和蓝牙。 当找到新设备并且Bluetoothadapter更改了状态时,我想从广播信息中获取信息。 我有以下代码: 为什么我要用BEReceiver_ADD接收信号但不能用BEReceiver_Adapter接收信号? 我从不进入BEReceive ...

试图获得蓝牙适配器; 无法解析方法“ GetSystemService(java.lang.String)” - Trying to get BluetoothAdapter; Cannot resolve method 'GetSystemService(java.lang.String)'

我正在关注Android Studio中的BluetoothLE文档: https://developer.android.com/guide/topics/connectivity/bluetooth-le#setup 我的目标是设置蓝牙,使其能够与我的Java应用程序一起使用。 ...

片段:应用程序可能在其主线程上做太多工作 - Fragment: The application may be doing too much work on its main thread

我在我的应用程序中使用第3个片段。 当我来到3.fragment时,我想通过蓝牙向其他设备发送消息。 但是我的日志说: 该应用程序可能在其主线程上做太多工作。 而且比我的AcceptedThread锁还好。 所以我的ConnectedThread为空。 我不能发送任何东西。 ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM