Sunday, May 13, 2012

[android-developers] Re: how to know that headset is plugged in?

I would check the current audio mode, and then test am.isSpeakerphoneOn() to be false.

On Sunday, May 13, 2012 8:11:54 PM UTC-4, Farhan wrote:
Hi,
I aim at playing a sound only if the headset is plugged in. How can I use the sdk to check if headset is plugged in? Thanks

Regards,

Farhan

--
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


Real Estate