Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Windows Phone and PhoneGap: Make a Phone Call (part 1)

DZone's Guide to

Windows Phone and PhoneGap: Make a Phone Call (part 1)

· Mobile Zone
Free Resource

Download this comprehensive Mobile Testing Reference Guide to help prioritize which mobile devices and OSs to test against, brought to you in partnership with Sauce Labs.

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 App using silverlight framework 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

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

Simple isn’t it ?

 

Analysts agree that a mix of emulators/simulators and real devices are necessary to optimize your mobile app testing - learn more in this white paper, brought to you in partnership with Sauce Labs.

Topics:

Published at DZone with permission of Senthil Kumar, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}