Domanda

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

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top