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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to