Re: [android-developers] How to tell if headphones are plugged in

2010-06-08 Thread sachin ravi
Try to register the broadcast event for ACTION_HEADSET_PLUG. in intent.getIntExtra("state", 0)); you will get whether headset is connected or not. On Tue, Jun 8, 2010 at 9:56 PM, info.sktechnol...@gmail.com < info.sktechnol...@gmail.com> wrote: > I need to know whether headphones are plugged

[android-developers] How to tell if headphones are plugged in

2010-06-08 Thread info.sktechnol...@gmail.com
I need to know whether headphones are plugged in and receiving my audio stream. I have tried using isWiredHeadsetOn from the AudioManager, but this seems to always return false, even when I am hearing audio through the headphones. I have only tried this on my EVO. Any suggestions? -- You recei