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.