Reputation: 169
To make a phone call in Windows Phone 8.1 I have to do the following:
Windows.ApplicationModel.Calls.ShowPhoneCallUI(number, name);
But in Windows 8.1 app there is no class PhoneCallManager
in Windows.ApplicationModel.Calls
namespace. Is there any way to make a phone call in Windows 8.1 store app?
Thanks in advance!
Upvotes: 0
Views: 1441
Reputation: 1826
I've just googled for you and found that link.
Always try to stay on the newest stand in your programming network. I also found that:
Windows Phone 8.1 [Windows Runtime apps only]
is compatible to run
public static void ShowPhoneCallUI(
string phoneNumber,
string displayName
)
I think that microsoft is still updating their classes to 8.1 but you would be able to use already some namespaces.
Upvotes: 1
Reputation: 33048
On Windows Phone (!) you can either use
var phoneCallTask = new PhoneCallTask
{
PhoneNumber = number,
DisplayName = "The Name goes here"
};
phoneCallTask.Show();
or
Windows.ApplicationModel.Calls.PhoneCallManager.ShowPhoneCallUI(number, "The Name goes here");
Maybe you are simply missing an assembly reference?
Upvotes: 0