Apart from starting a traditional phone call, you can easily launch a call to a given Skype user using the external application installed on the device. You will learn how to do it in this recipe. Similar to the case of opening a website in a default web browser, such a task just requires specifying a proper Uri
instance and passing it as a parameter to the LaunchUriAsync
method of the Launcher
class.
To prepare an example that allows launching a Skype call, perform the following steps:
Add a button (starting a call to a given Skype user) to the page by modifying the content of the
MainPage.xaml
file, as follows:<Page (...)> <StackPanel (...)> <Button Content="Start call" (...) Click="BtnStartCall_Click" /> </StackPanel> </Page>
Define...