Turn off screen during call Windows Phone 8

917 views Asked by At

My question is similar to Detect Proximity Sensor Events in Windows Phone 8 question.

I am developing a voip app in windows phone 8 which I want to turn off screen when user tries to hear through earpiece during call.

I checked in Voip Chatterbox sample app and it is working fine there, but I am unable to find the code section where they did it.

Any help would be appreciated.

1

There are 1 answers

0
vITs On

Just add ID_CAP_SENSORS Capability in WMAppManifest.xml.It should work as expected then.