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

Native Development

Reply
New Developer
Posts: 6
Registered: ‎10-27-2013
My Device: BBZ10
My Carrier: Telcel
Accepted Solution

How can I make a call?

Hi all!
I'm new in cascades and I have problems with phone call code, I've tried to use the code from the documentation but in Momentics I see a bulb on "import bb.system.phone 1.0" and in the simulator when I push the buttom for show dialpad, it do nothing.

Is it normal that?


If I try to use the app in a physical device , will it work fine?

Thanks for your help.

Regards.

Developer
Posts: 85
Registered: ‎06-22-2013
My Device: N/A
My Carrier: N/A

Re: How can I make a call?

[ Edited ]

This way works in QML file

 

import bb.system 1.0

attachedObjects: [
  Phone {
         id:phone
       }
]
Button{
  onClicked{phone.requestDialpad("12345","Mobile")}  
{

 

Highlighted
New Developer
Posts: 6
Registered: ‎10-27-2013
My Device: BBZ10
My Carrier: Telcel

Re: How can I make a call?

Thanks a lot!! 

You save me man! 

 

In the documentation about Telephony says that import bb.system.phone 1.0 is the correct, but when I eliminated .phone it worked! 

 

Thanks again!!