Questions tagged [bluetoothheadset]

10 questions
2
votes
0 answers

Connect to Bluetooth HSP/HFP service from android

I'm trying to build an application which allows me to answer incoming phone calls from my PC, so far, i was able to advertise a service using Pybluez in Python. Now, How can i connect to that service from android?
Hossam
  • 21
  • 1
1
vote
0 answers

Route MIC input through headset and at the same time AUDIO output through same headset

In my app, I need to take input voice(surrounding noise)from the headset and at the same time need to play some tone as output sound in the headset. However, during the search, I found that it is not possible to input the noise and send the output…
1
vote
0 answers

Can't set bluetooth headset as default output device in OS X using CoreAudio API

I am having difficulty programmatically setting my Bluetooth headset (Apple Airpods) as the default audio output device on my OSX. I have attempted to use the CoreAudio API to set the device as default, but it does not appear to be working. In my…
1
vote
0 answers

AudioManager MODE_IN_COMMUNICATION decreases the sound quality and causing crackling/popping sound

Description of the problem: When the app is connected through Bluetooth headsets, I'm starting the audioManager.startBluetoothSco(). You can check the code below. The connection works well, but I have a problem with the crackling sounds that are…
1
vote
0 answers

How can I get my bluetooth tws/headset battery level in flutter ? (individual buds battery level as well as case battery level)

I'm trying to build an app using flutter which gets battery level of currently connected Bluetooth headset or TWS.
0
votes
0 answers

Detecting Bluetooth Headphones Key Press Android

I am trying to detect key presses of the Bluetooth headset. Overriding onKeyDown and dispatchKeyEvent methods can detect normal headphones presses but not the Bluetooth ones. The other questions related to this topic are from ages ago, so they are…
bugra
  • 55
  • 2
  • 4
0
votes
1 answer

Fail to catch android.intent.action.MEDIA_BUTTON

My app that uses TextToSpeech to read some text is 90% finishes but has been stuck at this part for a few days. All I want is have the play/pause button of my bluetooth headset (Xiaomi's Mi Sports Bluetooth Earphones) to play/pause the TextToSpeech.…
0
votes
0 answers

Android Studio Headset control button Click Events Error

I'm getting an error message in my Android application when I call the actionPlaying button in the onPlay method. Here is my code: @Override public void onReceive(Context context, Intent intent) { if(event.getAction() != KeyEvent.ACTION_DOWN)…
0
votes
1 answer

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 STATE_CONNECTED The return type of the method is…
-1
votes
2 answers

Unable to connect Bluetooth headset to Teams App on Android Phone

Recently Teams App can't use Bluethooth headset to hear meeting.
Jamie
  • 79
  • 1
  • 8