Question

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

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top