Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [android-bluetooth]

The Android bluetooth subsystem. May also refer to using bluetooth hardware in Android.

android-bluetooth
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 ...
dchappelle's user avatar
  • 1,710
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 ...
sa.shadow's user avatar
  • 2,408
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 ...
Long Smith's user avatar
  • 1,401
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. ...
Mustafa Kuloğlu's user avatar
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 ...
Sandip Jadhav's user avatar
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 ...
JakeP's user avatar
  • 1,756
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 ...
Reaz Murshed's user avatar
  • 24.1k
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 ...
Hardik Joshi's user avatar
  • 9,517
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 ...
afrederick's user avatar
  • 1,388
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 ...
mattthebaker's user avatar
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 ...
dermoritz's user avatar
  • 12.7k
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 ...
Tim's user avatar
  • 3,783
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 ...
Bhanu Prakash Pasupula's user avatar
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<...
davidgyoung's user avatar
  • 64.6k
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 ...
Shigerello's user avatar
  • 2,052

15 30 50 per page
1
2 3 4 5
16