O'Reilly logo

Windows Application Development Cookbook by Marcin Jamro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Starting a phone call

A UWP application, launched on a smartphone, allows showing a dialog to start a call with a given number. Such a task requires just one line of code. Of course, you should also take care about devices that do not support calling. You will learn how to achieve this goal in the current recipe.

As an example, you will create a simple page with a button. After clicking on it, a dialog should be presented that allows calling a given phone number. Of course, you will handle a scenario of not supporting such a feature. In such a case, a message is shown.

Getting ready

To step through this recipe, you need only the automatically generated project.

How to do it...

To prepare an example that allows starting a phone call, perform the following ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required