What do you mean check current mode? Wouldn't
AudioManager.isWiredHeadsetOn()  do the job?

On Mon, May 14, 2012 at 7:00 AM, lbendlin <l...@bendlin.us> wrote:

> 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+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to