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
Contributor
Posts: 38
Registered: ‎09-06-2013
My Device: BlackBerry Z10
My Carrier: Claro
Accepted Solution

Error bb.system.phone is not installed

Hello friends. I am developing an app that uses the phone but I am getting this error: "module "bb.system.phone" is not installed".

 

I have added -lbbsystem  and   -lbbdata to the .pro file.

I have imported bb.system.phone 1.0 on my qml

I have registered to use it on the qml with 

////
    qmlRegisterType<bb::system::phone::Phone>("bb.system.phone", 1, 0, "DialPad");
        bb::data&colon;:DataSource::registerQmlTypes();
    /////

My DialPad.qml class is this:

 

import bb.cascades 1.0
import bb.system.phone 1.0

Page {
    Container {
        
    
    TextField 
    {
        hintText: "Enter Number"
    }
    Container 
    {
      
    }
    onCreationCompleted: {
        phone.requestDialPad("(519) 555-0100")
    }
    attachedObjects: 
    Phone {
        id: phone
    }
    
    }
}

 What could I be doing wrong?

Maybe I need to install something?

 

Thanks

 



_______________________________________________________
If you've been helped click on Like Button, if you've been saved download the app.

Developer of Easy Memes
BlackBerry Development Advisor
Posts: 81
Registered: ‎09-09-2013
My Device: BlackBerry Z10
My Carrier: Etisalat UAE

Re: Error bb.system.phone is not installed

Hello, I believe you are getting this error in the QML preview. Right? I've read this in another post, I think it's known issue in Momentics IDE.

However the app should work/run properly without any problem? let me know

Thanks,
Kareem.
Kareem ELSayed | Application Development Consultant | Developer Relations | BlackBerry | Twitter:@kemobyte
BlackBerry Development Advisor
Posts: 81
Registered: ‎09-09-2013
My Device: BlackBerry Z10
My Carrier: Etisalat UAE

Re: Error bb.system.phone is not installed

Developer
Posts: 358
Registered: ‎04-13-2013
My Device: Z10
My Carrier: Telus

Re: Error bb.system.phone is not installed

Yea basically if you import any library on top of cascades the preview breaks (kind of unfortunate as most apps rely on other stuff lol...)

 

Don't worry you're app should work just fine.  Have you tested the phone functionality on the simulator or a dev device? 

Highlighted
Contributor
Posts: 38
Registered: ‎09-06-2013
My Device: BlackBerry Z10
My Carrier: Claro

Re: Error bb.system.phone is not installed

Well I finally tested it and the app works seamlessly, the only problem is that the preview get's fckd up 



_______________________________________________________
If you've been helped click on Like Button, if you've been saved download the app.

Developer of Easy Memes