wired headphones plugged in and out
I need an event executing when user plugs in/out wired headphones开发者_开发技巧, it made in HTC sense player.
android.media.AudioManager doesn't generate an event, it even doesn't return a correct value with isWiredHeadsetOn()
How can I know if wired headset plugged or not?
Try ACTION_HEADSET_PLUG
.
精彩评论