Questions tagged [android-bluetooth]
The Android bluetooth subsystem. May also refer to using bluetooth hardware in Android.
android-bluetooth
235
questions
98
votes
8
answers
167k
views
How can I programmatically tell if a Bluetooth device is connected?
I understand how to get a list of paired devices, but how can I tell if they are connected?
It must be possible since I see them listed in my phone's Bluetooth device list and it states their ...
193
votes
5
answers
102k
views
Android 4.3 Bluetooth Low Energy unstable
I am currently developing an application that will use Bluetooth Low Energy (testing on the Nexus 4). After getting started with the official BLE APIs in Android 4.3, I have noticed that after I ...
29
votes
2
answers
89k
views
Android Broadcast Receiver bluetooth events catching
I'm trying to catch bluetooth state changes with Broadcast Receiver.
My manifest:
<uses-permission android:name="android.permission.BLUETOOTH" />
<application>
<activity
...
91
votes
12
answers
163k
views
Android 12 New Bluetooth Permissions
Bluetooth is the main dependency of our app. So, We already try to implement new Android 12 Bluetooth permissions. Our only resource is Android developers New Bluetooth permissions in Android 12. ...
41
votes
8
answers
106k
views
How to pair Bluetooth device programmatically Android
I am developing an application where I want to connect a Bluetooth device main issue is I don't want user to enter required pin instead application should do that by himself...I don't have any ...
25
votes
4
answers
78k
views
Estimating beacon proximity/distance based on RSSI - Bluetooth LE
I've got a simple iOS app which displays the proximity of the Bluetooth LE beacons it detects using such expressions as "immediate", "near" etc. and I need to write something similar on Android.
I've ...
4
votes
1
answer
49k
views
Find all Bluetooth devices (headsets, phones etc) nearby, without forcing the devices in discoverable mode
My goal:
To detect all nearby Bluetooth devices(phones, headsets, etc.) from my Android application.
Here's a nice example from developer.android.com which discovers the Bluetooth devices nearby ...
81
votes
3
answers
53k
views
Can an Android device act as an iBeacon?
Can an Android device act as an iBeacon and figure out when other Android devices come in its range? Do those other Android devices need to have Bluetooth turned on?
If a customer comes into my shop ...
47
votes
6
answers
45k
views
Communicating between iOS and Android with Bluetooth LE
I've got a working app using CoreBluetooth to communicate between an iPad (central) and iPhone (peripheral). I have one service that has two characteristics. I have a Nexus 7 running the latest ...
28
votes
5
answers
25k
views
Android 4.3: BLE: Filtering behaviour of startLeScan()
I'm working on a BluetoothLE sensor device, for which I need to form a one-to-many broadcast of data. As per the spec, peripherals may only have a single master, and due to limitations of the chip ...
20
votes
3
answers
33k
views
How to capture key events from bluetooth headset with android
My app can be controlled by normal headset. It simply overrides "onKeyDown". But key events from bluetooth headset are not captured - why? Or how to capture bluetooth key events?
the "log cat" shows ...
33
votes
2
answers
51k
views
Android BLE, read and write characteristics
I am currently developing Android BLE, and encounters a lot of problems with the Android BLE stacks..
My development tool is Samsung Galaxy J with Android 4.3.
I want to know how can I read a ...
16
votes
1
answer
17k
views
How to keep Bluetooth connection background?
I have created a Bluetooth Activity class in the android app, which works fine for all the Bluetooth functionalities like: scanning, pairing, connecting, sending and receiving data.
The real problem ...
29
votes
4
answers
48k
views
Bluetooth LE Scan fails in the background - permissions
The following code works great on my Nexus 9 running Android 5.1.1 (Build LMY48M), but won't work on a Nexus 9 running Android 6.0 (Build MPA44l)
List<ScanFilter> filters = new ArrayList<...
20
votes
4
answers
10k
views
Solution for BLE scan's SCAN_FAILED_APPLICATION_REGISTRATION_FAILED?
My Android app scans BLE devices, and from a certain point it start to fails with error code 2 (ScanCallback.SCAN_FAILED_APPLICATION_REGISTRATION_FAILED). I'm using Nexus 9, 5.0.1 Lollipop.
This ...