[android-developers] How can my app check if a wired headset is connected?
Using Intent.ACTION_HEADSET_PLUG, my app can be notified when a wired
headset is plugged or unplugged.
But how can it determine whether or not it's plugged in when it starts
running?
The closest thing I can find is AudioManager.isWiredHeadsetOn() which
"checks whether audio routing to the wired headset is on or off" - but
the headset can still be connected without audio being routed to it.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home