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
8
votes
3 answers

How to detect if a bluetooth headset plugged or not IOS 8?

In my project, I use AVAudioSession to detect any headphone is plugged or unplugged. But in this case, I can't detect when bluetooth device is plugged. Here is my code for headphone state. -…
7
votes
3 answers

Android Emulator - How to emulate headset plugging action

Android Emulator - How to emulated headset plugged. Is it possible to simulate the action of a headset being plugged in? Basically, I want this intent fired - Intent.ACTION_HEADSET_PLUG. Is there any other way to do this other than simulating a…
jumpa
  • 658
  • 1
  • 9
  • 22
7
votes
0 answers

Handling Android bluetooth headset buttons

This topic pops up sometimes but i can't have that thing working. My app used to handle media button, but API after Android 5.0 changed and it need to adapt this app to "catch" bluetooth buttons and handle them "my way". I've done a lot of searching…
Jarek Kożdoń
  • 336
  • 2
  • 13
7
votes
1 answer

Android: Handle headset buttons events and Send information to MainActivity

Here's my effort to make a working code to handle a headset button event the best way. I read the Android developer guide, but it is obviously wrong because they ask to start listening registering a class…
donnadulcinea
  • 1,854
  • 2
  • 25
  • 37
7
votes
1 answer

How to use Android device as a bluetooth headset for another mobile phone?

I want to make my android device working as a bluetooth headset. I search the Android APIs, but I just find some interface which can make Android device working as a masters, not as a device(bluetooth headset). I'm also ready to modify the source…
user2401226
  • 71
  • 1
  • 1
  • 3
7
votes
1 answer

How to Detect Headset Capabilities

I know how to detect whether a headset is plugged in but some headsets (e.g Samsung EHS60ANNBE) come with the PAUSE/PLAY (a.k.a KeyEvent.KEYCODE_HEADSETHOOK) button only, without the PREV/NEXT... I would like to be able to detect whether the headset…
an00b
  • 11,338
  • 13
  • 64
  • 101
6
votes
3 answers

How to get information about CONNECTED bluetooth device for android?

If I have a Android phone which is already connected with a bluetooth headset (paired and connected) to it. How I can get information about that specific headset. Using getBondedDevices() method I get list of all paired devices..I need information…
Deeps
  • 61
  • 1
  • 1
  • 3
6
votes
1 answer

AudioManager.isWiredHeadsetOn() is not working in android

I want to check whether heaset is plugged in or not... I did it like this AudioManager am = (AudioManager)getSystemService(AUDIO_SERVICE); Log.i("am.isWiredHeadsetOn()", am.isWiredHeadsetOn()+""); But i am always getting false value... Why is…
coderslay
  • 13,960
  • 31
  • 73
  • 121
6
votes
0 answers

Bluetooth headset voice recognize not working

I am working on an application in which I have to recognize bluetooth headset voice. I have troubled a lot but still not get any solution. I am following this link: Using the Android RecognizerIntent with a bluetooth headset And every time I m…
Sandeep Patidar
  • 287
  • 1
  • 2
  • 6
6
votes
2 answers

Sending commands from custom made Bluetooth device to android phone to control music player

I have created a simple Bluetooth device using following components HC05 module Arduino Uno board (with re-programmable micro-controller) I am wondering if it is possible to send commands from my BT device, as if these commands were sent from…
Alex
  • 4,607
  • 9
  • 61
  • 99
6
votes
1 answer

Using android.net.rtp for VoIP

I'm trying to use the android.net.rtp library to make a VoIP application. Its audio stream can be both sent and received correctly. My problem is: The speaker of the callee's phone works fine, but the headset is muted at all time (even if I turn off…
jane
  • 81
  • 3
6
votes
0 answers

Bluetooth headset: getProfileConnectionState always returning connected state

Im trying to check if there is a bluetooth headset connected to the device or not BluetoothAdapter mAdapter; mAdapter = BluetoothAdapter.getDefaultAdapter(); Log.d("TAG","HEADSET: " +…
JesusS
  • 1,645
  • 1
  • 18
  • 31
5
votes
1 answer

Invoking a private (unpublished) method in Android API

I need to check which BT headsets are currently connected (not just paired) in OS 2.0 - 2.3. Such functionality doesn't exist until API version 11, where a Bluetooth Headset class was introduced. But there already existed a class called…
user496854
  • 6,461
  • 10
  • 47
  • 84
5
votes
2 answers

App crash on headset button click

I have build an audioplayer which is deployed in android google playstore. I'm using crashlytics to monitor crashes and ANRs. Recently I have been getting a lot of crashes MediaButtonReceiver. The headset clicks work fine in many devices. But some…
5
votes
1 answer

Show Title (not song or artist but active SIP conversation) on Bluetooth CarKit from Android

So I'm currently developing a SIP dial app and I was wondering how I could change the displayed information on a Bluetooth CarKit. I route the audio to the carkit using : AudioManager localAudioManager = (AudioManager)…
jobbert
  • 3,297
  • 27
  • 43
1
2
3
17 18