开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜