26 questions
1
vote
1
answer
64
views
Android BluetoothAdapter.setName() returns true but ACTION_LOCAL_NAME_CHANGED broadcast never fires - Proposed Solution
I'm working on an Android app that programmatically changes the Bluetooth device name using BluetoothAdapter.setName(). The app needs to know when the name change completes to trigger subsequent ...
1
vote
1
answer
442
views
Bluetooth discovery issue in Android versions above 12
I am programming a very simple test Android application that makes a discovery of bluetooth devices and displays them on screen. This application works correctly on Android 9, but does not work ...
0
votes
0
answers
136
views
How to switch between the Available/Paired bluetooth device in Android Studio
We all know how to show the paired device list but my question is how we can switch to our preferable bluetooth headset from the list. I only want this option for mobile to headset. Can anybody kindly ...
0
votes
0
answers
309
views
getUUIDS returns null when device isn't paired
For some strange reason i can't get the uuids of a device i'm getting after a discovery.
But if I paire both device before the discovery, then the method getUUIDS doesn't return null.
Am I Missing ...
2
votes
1
answer
301
views
BluetoothAdapter StartDiscovery does not work in Foreground Service
My application starts a service that detects phone shaking. When the service detects a shake, it searches for a BT device within range and if a suitable device is found, it connects to it and sends ...
4
votes
0
answers
5k
views
BluetoothAdapter.getName() returns "QCOM-BTD" instead of its set bluetooth name
My Unity app was required to get Bluetooth names to distinguish different phones in the same local network. Here is the code that I used to get Bluetooth name:
AndroidJavaClass blueToothAdapter = new ...
0
votes
1
answer
489
views
STATE_CONNECTED doesn't mean it's really CONNECTED?
If we have a look at this, it says :
Android only supports one connected Bluetooth Headset at a
time.
Also the explanation of getConnectedDevices() :
Return the set of devices which are in state ...
2
votes
0
answers
61
views
AndroidStudio : List Paired Devices
I'm currently making an app in Android Studio that should communicate with the HC06 Bluetooth Module.
I've started with a code I found online here :
http://android-er.blogspot.com/2015/10/android-...
0
votes
1
answer
164
views
Bluetooth Scanrecord same values are null
I tried to read beacon scanresult, some values came but result.getScanRecord().getServiceUuids() always null.
And also i dont understand that how can i parse "result.getScanRecord().getBytes()". i ...
0
votes
1
answer
1k
views
How to connect two android devices using a2dp and avrcp bluetooth profiles?
I am trying to implement a2dp and avrcp between two android devices, i couldn't find any proper references for this. some I have found but are not so much helpful.
if (mBluetoothAdapter == null &...
0
votes
1
answer
501
views
java.lang.NoSuchMethodError: android.bluetoothAdapter.getBluetoothLeAdvertiser at org.altbeacon.beacon
Getting error on Asus, Samsung tablets having OS version 4.4.2
Android Beacon Library version.
Getting below Issue.
I tried updating the library, handling the crash but still able to see below error:...
0
votes
1
answer
4k
views
Trying to get BluetoothAdapter; Cannot resolve method 'GetSystemService(java.lang.String)'
I am following along with the BluetoothLE docs at Android Studio:
https://developer.android.com/guide/topics/connectivity/bluetooth-le#setup
My goal is to set up Bluetooth to be able to work with my ...
0
votes
1
answer
2k
views
Android - Multiple BluetoothBleScanner
I have a Cordova application for iOS/Android. The Javascript for the application is served by a webserver which ofcourse makes updating of the App very easy - no AppStore releases unless it is a ...