David Hayes
David Hayes

Reputation: 7512

Can you tell whether headphones/headset are plugged in WP8

Is it possible to tell whether the headphones are plugged in on a windows phone 8 device? I want to use the Text to Speech API but I don't want to read messages over the speaker

Upvotes: 9

Views: 1282

Answers (2)

Rob.Kachmar
Rob.Kachmar

Reputation: 2188

Actually, yes you can on WP8. It's not an obvious API, but these guys figured out how to do it as long as the phone is running anything above GDR1.

http://developer.nokia.com/community/wiki/How_to_detect_the_audio_path_(headset_connection)_on_Windows_Phone

Upvotes: 3

Related Questions