Windows Phone 8.1 and Windows Runtime Apps How to #3 – How to make a Phone Call in Windows Phone 8.1 XAML App ?

In the Windows Phone 8.0 and earlier versions , the developers could use the PhoneCallTask which allows the use to make a phone call. If you are targeting Windows Phone 8.1 Silverlight App model , this will still work fine . How about the Windows Phone 8.1 Windows Runtime App ?

How to make a Phone Call in Windows Phone 8.1 XAML App ?

If you are targeting the Windows Phone 8.1 XAML App (Windows Runtime App) , you can use the ShowPhoneCallUI static method that is defined in the PhoneCallManager class .

Below is a method that demonstrates how to show the Phone Call UI / Dialler programmatically from your app.

// Make a phone call using the PhoneCallManager in Windows Phone 8.1 WinRT App
public void MakePhoneCall(string PhoneNumber,string DisplayName)
{
   Windows.ApplicationModel.Calls.PhoneCallManager.ShowPhoneCallUI(PhoneNumber, DisplayName);
}

When the above method is called by passing the phone number and the display name as shown below , you will see the Phone Call UI .

MakePhoneCall("0000000000", "Senthil Kumar");
1
How to make a Phone Call in Windows Phone 8.1 XAML App ?

    2 Comments

  1. Giorgio Laconi
    May 9, 2016
    Reply

    Perfect, thank you!

  2. Eugene
    September 26, 2016
    Reply

    Is there any way to avoid conformation of dialing?

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

In this post, you’ll learn about the Win32 Error “0x000019E5 – ERROR_COULD_NOT_RESIZE_LOG” that you get when debugging system erors in...
In this post, you’ll learn about the error “CO_E_DBERROR 0x8004E02B” that is returned when working with COM based APIs or...
In this post, you’ll learn about the Win32 Error “0x000019D0 – ERROR_LOG_BLOCK_VERSION” that you get when debugging system erors in...