Eggakin Baconwalker
Eggakin Baconwalker

Reputation: 573

Detect if user is making a call Windows Phone

Is there a way to detect if user clicked to call in Windows Phone? I don't want to block, detect incoming or anything else with the call, I just want that my app knows when the user clicked to call and knows the number that he is calling.

Is this possible?

Upvotes: 0

Views: 184

Answers (2)

Den
Den

Reputation: 16826

There is no way currently to detect the phone call status (or any other metadata, for that reason) for security and privacy reasons.

If you ever want to know whether your application workflow is interrupted by a call or whatnot, you can rely on the Obscured and Unobscured event handlers. You can download a ready-to-go sample here.

Upvotes: 0

Rowland Shaw
Rowland Shaw

Reputation: 38130

No, with the Windows Phone OS, an app can not interfere with the calling functionality. The best they can do is prompt the user to dial, to a supplied number.

Upvotes: 1

Related Questions