Windows Phone 7 - How to calculate call duration or termination

前端 未结 2 1197
情话喂你
情话喂你 2021-01-25 08:52

I\'m new to windows phone 7 development...

Can anyone please tell me how to calculate call duration? or how to get notification of incoming call? using silverlight or c#

相关标签:
2条回答
  • 2021-01-25 09:26

    There is no way to get calls information or notifications of incoming calls on the current Windows Phone 7 SDK.

    0 讨论(0)
  • 2021-01-25 09:32

    There is no way to access call information.

    However if your app is running and a call comes in the Obscured event will be triggered. You can then use a combination of the Unobscured, NavigatedTo, Loaded & Activated events to determine when the app has the focus again.

    This won't give you the length of the call but rather then time between an event that may be a call (including incoming SMS, alarms, etc.) and the user returning fully to your app. This may be a good enough approximation, but it will depend on your needs.

    0 讨论(0)
提交回复
热议问题