Over a million developers have joined DZone.

Windows Phone and PhoneGap: Make a Phone Call – Part 1

· Mobile Zone

Visually compose APIs with easy-to-use tooling. Learn how IBM API Connect provides near-universal access to data and services both on-premises and in the cloud, brought to you in partnership with IBM.

In this blog post , I will show you a simple trick to make a phone call to a number using PhoneGap.

If you are developing this app using silverlight in Windows Phone SDK , we can make use of the PhoneCallTask to make a call in Windows Phone.

In PhoneGap, all that you have to do is just place the phone number to be called in the hyper link prefixed with with the keyword “tel:”.

<a href="tel:+00-000"> Make a Phone Call </a> 

When the user tries to click on the hyperlink, a form will be shown where the user can edit the phone number(if required) and click on the call button to make a call .

Windows Phone and PhoneGap - Article #11 - Make a Phone Call - Part 1

 

Simple isn’t it ?

The Mobile Zone is brought to you in partnership with Strongloop and IBM.  Visually compose APIs with easy-to-use tooling. Learn how IBM API Connect provides near-universal access to data and services both on-premises and in the cloud.

Topics:

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}