Questions tagged [headset]

A headset is an accessory that combines a headphone with a microphone. It allows users to operate in hands-free function. They have multiple applications.

Headsets have multiple applications as monitoring fitness, monitoring movement, storing/playing music or audio files.

259 questions
30
votes
2 answers

How to read/send data using the Android Devices 3.5mm headset jack?

I was just stumbling around EE Stack and found this post: What protocol does a headphone jack use. And it sparked some curiosity in me, and I figure, if the iPhone can do it, I want to as well. Does any one know of any projects that are doing this…
ahodder
  • 11,353
  • 14
  • 71
  • 114
28
votes
0 answers

Is there any way to read the headset button event in a web browser using JavaScript (especially Chrome)?

I am trying to make a web app wherein it reacts to an event from the headset button. I know that the keyCode for the head set is 79. (I checked it using a key event reader app.) Nothing happens when I use it. Is there any way to detect it?
user1572212
  • 281
  • 2
  • 5
26
votes
1 answer

Android startBluetoothSco not starting sco but isBluetoothScoOn returns true

I have created a GitHub repo with a sample project that shows the below problem I am asking about here: https://github.com/paulpv/audio-loopback/tree/simplified/app/src/main/java/com/twistpair/wave/experimental/loopback (please stick w/ the…
swooby
  • 3,005
  • 2
  • 36
  • 43
24
votes
1 answer

How to Verify whether bluetooth headsets are connected on Android?

How to verify if there is any bluetooth headsets conected to android at the moment? Like: If there is a headset conected, the sound must route to this headset But if there isnt a headset, the sound must stay on speaker This must check during the…
21
votes
2 answers

How to make Android phone as a bluetooth headset?

Yes, I know Android has already implemented the Bluetooth Headset Profile, but it is in Audio Gateway Role, not in HeadSet Role. What I want to do is develop an application on Android phone which will act as a bluetooth headset, so it can connect to…
ET Worker
  • 275
  • 1
  • 3
  • 11
17
votes
3 answers

Handle bluetooth headset clicks (ACTION_VOICE_COMMAND and ACTION_WEB_SEARCH) on Android

I’m developing an Android application and I want it to interact with headset button clicks. I’m testing it in a Nexus 5 with Android KitKat 4.4. I tried first with a simple headset (not wireless). The button event received was KEYCODE_HEADSETHOOK…
PX Developer
  • 8,065
  • 7
  • 42
  • 66
14
votes
3 answers

Accepting a Call via Bluetooth Headset

i am working on a VoIP-Android-App. I would like to accept and decline Calls via a connnected Bluetooth Headset in an Activity. What I have tried so far: Using a Media Session to receive Media Button clicks. Problem: If we start BluetoothSCO we…
13
votes
1 answer

latency when pressing headset button in iphone

I'm trying to trigger different actions inside only my own app using buttons of plugged headset (something similar what pressy does). I noticed however that no matter if I use MPRemoteCommandCenter or remoteControlReceivedWithEvent delegate, I…
pzo
  • 2,087
  • 3
  • 24
  • 42
12
votes
1 answer

Use Android device as a headset for another device

When I use Bluetooth on my computer, I have a choice of a few different types of devices to look for. One choice is "headset". I want to make an application that will connect to another device as though it is nothing but a headset. So the audio and…
Tim
12
votes
2 answers

What triggers (or generates) KeyEvent.ACTION_MULTIPLE?

The documentation for KeyEvent.ACTION_MULTIPLE says: "multiple duplicate key events have occurred in a row, or a complex string is being delivered. If the key code is not {#link KEYCODE_UNKNOWN then the {#link getRepeatCount() method returns…
ih8ie8
  • 944
  • 8
  • 23
11
votes
2 answers

How to make A2DP and HSP work simultaneously

I have a bluetooth headset. When connecting it to Windows 10, it installs two profiles in Playback devices list: Hands-Free. (HSP profile) Stereo. (A2DP profile) The Second one (Stereo) is set to be the "Default Device" and the "Default…
onlyforthis
  • 444
  • 1
  • 5
  • 21
10
votes
3 answers

Detect headset button click on iPhone SDK

Is there a way to detect the headset's play/pause button click? I managed to detect the volume buttons clicks using: AudioSessionAddPropertyListener( kAudioSessionProperty_CurrentHardwareOutputVolume , audioVolumeChangeListenerCallback, self ); But…
MCO
  • 153
  • 1
  • 2
  • 12
10
votes
1 answer

Android: Forcing external microphone (jack input 3.5mm) to stay on

How do I force the Android system to select the 3.5mm Jack as my microphone source? I am using the AudioRecord class to do the recording. I am using an external Microphone. When it is detected all works well, but sometimes the external microphone…
user2819360
  • 113
  • 1
  • 1
  • 5
9
votes
4 answers

Broadcast receiver highest priority not working

I'm doing an application using ACTION_MEDIA_BUTTON handler, but it appears it is always intercepted by MX Player or Apollo and I get no Intent I've tried both 1000 and 2147483647 priority set in tag and directly after constructor with…
Max The Cat
  • 401
  • 2
  • 5
  • 16
8
votes
1 answer

MediaButtonReceiver not working with MediaBrowserServiceCompat

I am trying to receive media button events from headsets or car controls (play/pause/etc.) This is in my app manifest.
Hackmodford
  • 3,901
  • 4
  • 35
  • 78
1
2 3
17 18