All Questions
Tagged with android-bluetooth kotlin
70
questions
0
votes
1
answer
61
views
Unresolved reference: Why isn't this variable being detected?
In the code below, "takePermission" and "bluetoothAdapter" aren't being recognized. I've been following along to this tutorial which seems slightly outdated, but his variables are ...
0
votes
0
answers
20
views
I want make Bluetooth calling feature in Android App
If Phone A Having App A get a phone call it should be shown in Phone B having App B. Considering Both Phones are paired. How do I achieve this. I tried something. Is there any open source project for ...
0
votes
1
answer
25
views
NoSuchMethodException: BluetoothAdapter on release builds
My application is crashing out with the error Caused by: java.lang.NoSuchMethodException: f4.b.<init> [class android.bluetooth.BluetoothAdapter] when I run it in release mode. The app works fine ...
0
votes
0
answers
120
views
Bluetooth Jetpack Compose Implementation
I am building an Android app for a prosthesis but ran into the issue of trying to add Bluetooth functionality where I send strings to so select the pose I want to achieve.
I want to initialize ...
0
votes
1
answer
23
views
How do I transfer a BluetoothSocket from one activity to another?
In my Android app, I've set up two activities:
Connection Activity: This activity helps find and connect to
Bluetooth devices. It shows a list of both paired and discoverable
devices.
Control ...
2
votes
1
answer
186
views
Why do we get ERROR_GATT_WRITE_REQUEST_BUSY error while writing to characteristic?
I am building chat app on ble. I do not need queue as i will be writing sequentially. But sometimes i get this error. I tried to debug it, what i found is if i remove my Notify Characteristic then it ...
1
vote
0
answers
138
views
BLE on Android - Get UUID of nearby devices
I am creating an app that through a ble scan returns a list of nearby devices, each device is an object which contains two pieces of information:
UUID : String,
rssi: Int
I can get the rssi value ...
0
votes
0
answers
33
views
How to disconnect bluetooth to an iOS device from an Android app programmatically
I tried using BluetoothSocket.close() but it doesnt work. It only works when I disconnect to an Android device. When I try to disconnect to an iOS device, the Bluetooth Socket is closed, but the ...
0
votes
0
answers
56
views
How to check for the PBAP connection status of a Bluetooth device while multiple devices are connected
My setup is having 2 device connected.While i am disabling PBAP access from one of the device , on receive of android.bluetooth.pbapclient.profile.action.CONNECTION_STATE_CHANGED how to know that ...
1
vote
0
answers
61
views
How to record audio from the Bluetooth earphones mic in kotlin
My Bluetooth earphones can be used to make phone calls but I'm not able to access the mic in android studio with kotlin.
I have tried different audio sources and If it doesn't crash right away it ...
0
votes
0
answers
66
views
Bluetooth printer not receiving sent data to print
I'm developing an android application in android studio and a part of it is sending a food order to the thermal printer via Bluetooth.
My app discovers all the Bluetooth devices in the area and when ...
0
votes
0
answers
98
views
Kotlin OBDII Bluetooth communication: Channel is unrecoverably broken and will be disposed
Im having some issues with retrieving data from my OBDII Adapter. The issue is divided into 2 parts, which maybe are related to each other. I want to mention at the beginning that the issue should not ...
0
votes
1
answer
286
views
In Android, how to specify on which thread the BLE ScanCallback is running?
Android. Kotlin.
Hello, I would appreciate some help understanding how threads work here :)
I have a BLE scanner class. Its method scan() runs everything with Dispatcher.IO. I managed to confirm that ...
3
votes
1
answer
173
views
Android 12+ BLE Bytes are different
I developed a small App in Kotlin which Scans for nearby BLE-Beacons using bluetoothLeScanner.startScan(scanCallback).
That works pretty well (the scanning/discovery part).
After testing my App on ...
0
votes
0
answers
100
views
Bluetooth LE scanning procedure cannot be stopped after a configuration change
I'm writing a simple Android app that scans for BLE (Bluetooth Low Energy) advertising packets and displays their contents on the screen. I have a Button on the screen that toggles BLE scanning: if ...