![](/img/trans.png)
[英]Does the bluetooth address of Android device changes after some time?
我問這個問題是因為我想創建一個應用程序,根據手機的藍牙地址存儲用戶的數據。 我們可以使用藍牙根據那個藍牙地址分享他的個人資料。 有人說藍牙地址會在一段時間后改變。 這是真的嗎? ...
[英]Does the bluetooth address of Android device changes after some time?
我問這個問題是因為我想創建一個應用程序,根據手機的藍牙地址存儲用戶的數據。 我們可以使用藍牙根據那個藍牙地址分享他的個人資料。 有人說藍牙地址會在一段時間后改變。 這是真的嗎? ...
[英]BluetoothAdapter StartDiscovery does not work in Foreground Service
我的應用程序啟動了一項檢測手機抖動的服務。 當服務檢測到震動時,它會搜索范圍內的 BT 設備,如果找到合適的設備,它會連接到該設備並向其發送數據。 為了檢查系統是否正在終止服務,我在檢測到震動時打開震動。 當 Activity 在主屏幕上時,一切正常。 但是,當我關閉 Activity 時,服務 ...
[英]Perform a bluetooth scan with BluetoothAdapter in Xamarin.android
我正在用 Xamarin 實現一個 APP。 我想執行藍牙掃描。 並找到設備。 這是我的代碼。 一旦觸發“Button_Scan()”,我該如何實現它來開始掃描並收集結果? 謝謝你。 ...
[英]STATE_CONNECTED doesn't mean it's really CONNECTED?
如果我們看看這個,它說: 安卓僅支持一個連接藍牙耳機在同一時間。 還有getConnectedDevices()的解釋: 返回處於狀態STATE_CONNECTED的設備STATE_CONNECTED 該方法的返回類型是List<BluetoothDevice> ,在 ...
[英]I am getting this error on selenium python
此錯誤與我的 web 抓取機器人完全無關。 我的代碼不會導致此錯誤。 它就在那里,我想擺脫它。 有任何想法嗎? Bluetooth: bluetooth_adapter_winrt.cc:1074 Getting Default Adapter failed. ...
[英]Why is android.bluetooth.BluetoothAdapter#listenUsingL2capOn(int) not accessible?
這可能是一個新手問題,因為我對 Android 的經驗有限,但由於某種原因,我無法訪問方法android.bluetooth.BluetoothAdapter#listenUsingL2capOn(int) 。 它似乎是公開的,因此不確定為什么該符號未被識別。 另一方面,如何在 android 上 ...
[英]Bluetooth Scanrecord same values are null
我試圖讀取信標掃描結果,一些值來了,但result.getScanRecord().getServiceUuids()總是 null。 而且我也不明白如何解析“ result.getScanRecord().getBytes() ”。 我看到了很多例子,但它無法理解或如此復雜。 我需要次要、主要和 ...
[英]How can I solve this NullPointer error in my Android app?
我在 android studio 中制作了一個屏幕,用於管理藍牙的某些方面,例如搜索設備、打開和關閉等。 當我運行應用程序時出現問題,將藍牙圖像從打開更改為關閉時出現 NullPointer 錯誤,反之亦然。 到目前為止我的代碼(簡化): 我在這里得到 NullPointer 異常: 錯 ...
[英]How to connect two android devices using a2dp and avrcp bluetooth profiles?
我正在嘗試在兩個 android 設備之間實現 a2dp 和 avrcp,我找不到任何合適的參考。 我找到了一些,但沒有太大幫助。 BluetoothProfileManager profileManager = BluetoothProfileManager.getInstance(); ...
[英]My java code could not search for nearby Bluetooth Devices
我已經寫了一個代碼以列出附近的藍牙設備,但是我的代碼無法檢測到任何藍牙設備。 根據我的代碼,當我執行String action = intent.getAction();時,該操作只是開始和結束而不會在日志中打印任何設備。 Log.i(“ Action”,action); 在BroadCa ...
[英]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 not working
我正在使用Android Oreo和藍牙。 當找到新設備並且Bluetoothadapter更改了狀態時,我想從廣播信息中獲取信息。 我有以下代碼: 為什么我要用BEReceiver_ADD接收信號但不能用BEReceiver_Adapter接收信號? 我從不進入BEReceive ...
[英]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為空。 我不能發送任何東西。 ...
[英]Android - Multiple BluetoothBleScanner
我有一個適用於iOS / Android的Cordova應用程序。 該應用程序的Javascript由網絡服務器提供服務,這當然使該應用程序的更新非常容易-除非對Cordova插件進行了更改,否則不會發布任何AppStore。 現在,該應用程序以幾種不同的方式使用BLE。 BL ...