Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
Posts: 16
Registered: ‎11-29-2010
My Device: Not Specified

How to open PhoneDialer in BB using JS APIs?

 Does anyone know how to open PhoneDialer in BB using JS APIs?

 

Thanks 

Contributor
Posts: 16
Registered: ‎11-29-2010
My Device: Not Specified

Re: How to open PhoneDialer in BB using JS APIs?

blackberry.launch.newPhoneCall({"dialString":"","smartDialing":false});

 using this in javascript as
<a onclick="blackberry.launch.newPhoneCall({"dialString":"","smartDialing":false});">dialer</a>
 gives  "invalid phone number" error first and after that it open dialer successfully
Does anyone knows how to remove this "invalid phone number" error??