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
danywarner
Posts: 38
Registered: ‎09-06-2013
My Device: BlackBerry Z10
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
Please use plain text.
BlackBerry Development Advisor
Kareem_ELSayed
Posts: 81
Registered: ‎09-09-2013
My Device: BlackBerry Z10

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
Please use plain text.
BlackBerry Development Advisor
Kareem_ELSayed
Posts: 81
Registered: ‎09-09-2013
My Device: BlackBerry Z10

Re: Error bb.system.phone is not installed

Please use plain text.
Developer
bmorr
Posts: 331
Registered: ‎04-13-2013
My Device: Z10

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? 

Please use plain text.
Contributor
danywarner
Posts: 38
Registered: ‎09-06-2013
My Device: BlackBerry Z10

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 :Wacko:



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

Developer of Easy Memes
Please use plain text.