Questions tagged [bluetooth]

Bluetooth is a global open wireless technology standard for exchanging data over short distances (using short wavelength radio transmissions) from fixed and mobile devices, creating personal area networks (PANs) with high levels of security.

Bluetooth wireless technology was developed by Jaap Haartsen Mattisson Svenis in 1994 and is the global short-range wireless standard enabling connectivity for a broad range of electronic devices using short-wavelength UHF radio waves in the ISM band from 2.4 to 2.485 GHz.

Features include:

  • small-form factor radio
  • low power
  • low cost
  • built-in security
  • robustness
  • ease-of-use
  • ad hoc networking abilities.

Manufacturers and consumers can choose to activate one or all of these features in Bluetooth enabled devices, depending on device functionality.

Oficial Site

bluetooth.com

Mainly specifications

  • 1.2 2003, 721 kbit/s
  • 2.0 2004, 2,1 Mbit/s
  • 3.0 + HS 2009, 24 Mbit/s
  • 4.0 2010, 32 Mbit/s
  • 5.0 2016-17, 64 Mbit/s

More details in wikipedia.

Books

17156 questions
40
votes
2 answers

Programmatically pairing with a BLE device on Android 4.4+

Does anyone have a complete working example of how to programmatically pair with a BLE (not Bluetooth Classic) device that uses passkey entry (i.e. a 6-digit PIN) or Numeric Comparison on Android 4.4 or later? By 'programmatically' I mean I tell…
Timmmm
  • 88,195
  • 71
  • 364
  • 509
40
votes
8 answers

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 connection related issue...Only want to insert and…
Sandip Jadhav
  • 7,377
  • 8
  • 44
  • 76
39
votes
3 answers

Android: BluetoothSocket receives its own output

I have an app that connects to a RaspberryPi via Bluetooth and loops the same data to it while it receives some data back. I had some issues with the connection so this workaround is needed to connect my android phone to the RaspberryPi:…
DeMo
  • 683
  • 5
  • 14
39
votes
1 answer

ADB over Bluetooth Android

I have no WIFI, I have no cable connection available. Is there hope for me to connect my device to ADB?
Juan Cortés
  • 20,634
  • 8
  • 68
  • 91
38
votes
4 answers

How to mock Context using Mockito?

I'm using Context to access system level services like WifiManager and BluetoothManager. How to mock this getApplicationContext() using Mockito?
user3600801
38
votes
5 answers

startLeScan replacement to current api

Goal is to read the values of a bluetooth LE heart rate monitor. Using google's sample, I get private void scanLeDevice(final boolean enable) { if (enable) { // Stops scanning after a pre-defined scan period. …
Vitalis Hommel
  • 990
  • 2
  • 8
  • 20
37
votes
2 answers

Use a handheld bluetooth printer with android

I have a bluetooth Handheld printer that I am able to communicate to using a SPP connection from my Mac(using Coolterm). When I'm trying to do the same from Android (using platform 7) I am running into multiple issues: The printer doesn't seem to…
navjotk
  • 818
  • 1
  • 9
  • 15
37
votes
6 answers

ActivityManager: Warning: Activity not started, its current task has been brought to the front

package supa.mack.doppler; import java.util.Set; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.TextView; import…
David
  • 371
  • 1
  • 3
  • 3
36
votes
4 answers

How to periodically scan for bluetooth devices on android

Hi this may sound as a stupid question.But I was unable to find any answers for this, thus posting here. I am building an indoor application which continuously scans the bluetooth dongles located at different locations in a place like a mall or…
Ameya Phadke
  • 923
  • 1
  • 13
  • 18
36
votes
3 answers

How to detect Bluetooth state change using a broadcast receiver?

I am trying to make an app that shows a toast when the device's Bluetooth turned on. I wanna do that even when my app is not running. So I should use a broadcast receiver, add some permissions, an intent-filter to android manifest and make a java…
Mohammad H
  • 785
  • 2
  • 10
  • 25
36
votes
6 answers

Is iOS 7 Multipeer Connectivity compatible with Android Wi-Fi Direct?

I've been looking at iOS 7's new P2P networking framework, MultipeerConnectivity, and from the description, it seems to me that it uses a combination of some kind of Wi-Fi Direct technology and Bluetooth PANs. Is the Wi-Fi Direct technology in this…
Linuxios
  • 34,849
  • 13
  • 91
  • 116
36
votes
3 answers

Android Bluetooth Low Energy Pairing

How to pair a Bluetooth Low Energy(BLE) device with Android to read encrypted data. Using the information in the Android BLE page, I am able to discover the device, connect to it, discover services and read un-encrypted characteristics. When I try…
36
votes
1 answer

Unable to Open SCOAudio connection with phone

I am trying to use IOBluetooth framework on OS X 10.8.2 to connect with the bluetooth enabled phones emulating computer as a hands free device. I can successfully make a connection with the phone and phone can recognise the connection as a HandsFree…
Muhammad Usama
  • 2,797
  • 1
  • 17
  • 14
35
votes
2 answers

IOS Bluetooth Keyboard - Inputs - Tab Event

Background: I have a textarea. I capture the Tab key event when the user is typing, and I insert a Tab character (\t) and prevent the browser from focusing on the next input. This works without issue on Mac and PC, on all browsers. Problem: When…
Tim Withers
  • 12,072
  • 5
  • 43
  • 67
35
votes
5 answers

Receive audio via Bluetooth in Android

I want to create an Android application that is capable of receiving an audio stream. I thought of using the A2DP profile, but is seems as if Android doesn't support A2DP sink. Looks like there are a lot of people that's searching for a solution for…
Johnny
  • 351
  • 1
  • 4
  • 8