can't get any intent when headset plugged in

dvrm

New member
I need to handle the intent
Code:
ACTION_HEADSET_PLUG
I can hear the voiced via the headset,
but no intent is invoked when plugging/removing the headset and I can't see any related message in logCat
please help me know how to detect headset is plugged or removed
thank you for giving your time
 
I need to handle the intent
Code:
ACTION_HEADSET_PLUG
I can hear the voiced via the headset,
but no intent is invoked when plugging/removing the headset and I can't see any related message in logCat
please help me know how to detect headset is plugged or removed
thank you for giving your time

Hi @dvrm

Welcome to the forum.
Please inform which Minix device you have.
Make and type of the headset (bluetooth or wired)

And so someone will probably be able to help.
 
minix-neo-u9-h
wired headset
I've also noticed ((AudioManager) getContext().getSystemService(Context.AUDIO_SERVICE)).isWiredHeadsetOn()
returns false although it is plugged in and I can here the voice as well
Thanks!
 
minix-neo-u9-h
wired headset
I've also noticed ((AudioManager) getContext().getSystemService(Context.AUDIO_SERVICE)).isWiredHeadsetOn()
returns false although it is plugged in and I can here the voice as well
Thanks!

You really seem to know a lot more about this than I do. I was reading about it and found that to be a completely new field for me to go through (https://www.vogella.com/tutorials/AndroidIntent/article.html), I admit. Hopefully someone will be able to help, especially because we now have the hardware description to go from.
 
Back
Top