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
Retired
Posts: 81
Registered: ‎09-09-2013
My Device: BlackBerry Z10
My Carrier: Etisalat UAE

Re: integrating my application with Call log core application in BlackBerry10?

Hello dhirajnangare,

Just to help me building a case, What kind of app you are developing and why it requires access to the users calls log?

Thanks,
Kareem.
Kareem ELSayed | Application Development Consultant | Developer Relations | BlackBerry | Twitter:@kemobyte
Developer
Posts: 828
Registered: ‎10-16-2012
My Device: Red Z10
My Carrier: Rogers

Re: integrating my application with Call log core application in BlackBerry10?

[ Edited ]

I'm not sure about the op, however if you need a use case here's a few

 

Backup,

Making an app that shows call history data in a interesting/unique way,

providing useful information at any point in the app, without breaking flow,

competitors platforms allow for this and many developers are requesting it,

the NSA already has all this infromation wether we like it or not.

 

*Also just to add it would be reasonable for a call log permission to be in place so customers have the ultimate choice wether they enable this functionality

 

There are other threads with several people asking for this as well (they sound like they really want it and seem disappointed we're at 10.2 without this)

 

http://supportforums.blackberry.com/t5/Native-Development/Phone-call-logs/td-p/2118803

http://supportforums.blackberry.com/t5/Native-Development/How-to-integrate-my-application-with-Call-...

 

 

Regular Contributor
Posts: 93
Registered: ‎08-20-2013
My Device: BB 10 -BlackBerry Z10
My Carrier: BlackBerry

Re: integrating my application with Call log core application in BlackBerry10?

[ Edited ]

Hello Kareem ,

     

I am trying to develop app that can store the user details like call logs , messages so that if any data gets lost it can be recovered. 

Developer
Posts: 1,622
Registered: ‎07-14-2008
My Device: Z10
My Carrier: Fido

Re: integrating my application with Call log core application in BlackBerry10?


Kareem_ELSayed wrote:
Hello dhirajnangare,

Just to help me building a case, What kind of app you are developing and why it requires access to the users calls log?

Thanks,
Kareem.

Kareem, this is too funny.  Why do they need a case for this feature? It was in BBOS7 and every platform has access to phone and call logs.  This would be simple api. The Hub already have access to this.  Why do we have to beg for these features.

 

If you follow the roadmap.  The entire Phone API was suppose to be available end of Aug.

 

There will be no need comes end of Nov.

 

Retired
Posts: 81
Registered: ‎09-09-2013
My Device: BlackBerry Z10
My Carrier: Etisalat UAE

Re: integrating my application with Call log core application in BlackBerry10?

Hi Smiley,

You don't have to beg or make a case, All I asked was the kind of apps you "DEV" developing and need this feature!!

I'm following up internally on when do we expect this API to be released!!

I'm trying to help here Smiley Happy

Thanks
Kareem.
Kareem ELSayed | Application Development Consultant | Developer Relations | BlackBerry | Twitter:@kemobyte
Regular Contributor
Posts: 93
Registered: ‎08-20-2013
My Device: BB 10 -BlackBerry Z10
My Carrier: BlackBerry

Re: integrating my application with Call log core application in BlackBerry10?

I have wriiten some code for this using callUpdated()  -   Would you tell me whats the problem here or what should I do in this ?

 

---- .CPP file ---

 

 

AppDemo::AppDemo(bb::cascades::Application *app)

: QObject(app)

{

    QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent(this);

    AbstractPane *root = qml->createRootObject<AbstractPane>();

    app->setScene(root);

    m_phone = new bb::system::Phone();

   QObject::connect(m_phone, SIGNAL(callUpdated(bb::system::Call&)),this,SLOT(onCallUpdated(bb::system::Call&)));

 

}

 

void AppDemo:Smiley SurprisednCallUpdated(const bb::system::Call &call)

{

    bb::system::CallState::Type state = call.callState();

    qDebug()<< "call updated: callId=" << call.callId() << " callState=" << state;

 

    if (bb::system::CallState::Connected == state) {

    qDebug() << "call connected, do something ...";

 

    }

}

 

 

--- .HPP file ---

 

class AppDemo : publicQObject

{

    Q_OBJECT

public:

    AppDemo(bb::cascades::Application *app);

    virtual ~AppDemo() {}

 

    Q_SIGNALS:

 

        void callUpdated(bb::system::Call&);

 

public slots:

 

void onCallUpdated(const bb::system::Call &call);

 

public:

    bb::system::Phone *m_phone;

  

};

 

#endif

 

 

This code giving me error on the console but not showing any error in code or project . 

 

Thanks 

Dhiraj,

Retired
Posts: 81
Registered: ‎09-09-2013
My Device: BlackBerry Z10
My Carrier: Etisalat UAE

Re: integrating my application with Call log core application in BlackBerry10?

Have you added LIBS += -lbbsystem to the .pro file?

http://developer.blackberry.com/native/documentation/cascades/device_comm/phone/

Thanks
Kareem.
Kareem ELSayed | Application Development Consultant | Developer Relations | BlackBerry | Twitter:@kemobyte
Regular Contributor
Posts: 93
Registered: ‎08-20-2013
My Device: BB 10 -BlackBerry Z10
My Carrier: BlackBerry

Re: integrating my application with Call log core application in BlackBerry10?

[ Edited ]

yeah Kareem , I have added that line in .pro file also.  Is there any issue in my code ?

Retired
Posts: 81
Registered: ‎09-09-2013
My Device: BlackBerry Z10
My Carrier: Etisalat UAE

Re: integrating my application with Call log core application in BlackBerry10?

Reading the code, it looks fine however you don't need to add the signal to the header file. You just need to register the slot.

    Q_SIGNALS:
 
        void callUpdated(bb::system::Call&)

It would be great to try to clean & re-Build the project and share the entire build log.

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

Re: integrating my application with Call log core application in BlackBerry10?

On another note, always recommended to use the paste code special button when posting code as comment. It makes it easy to read for all of us.
Kareem ELSayed | Application Development Consultant | Developer Relations | BlackBerry | Twitter:@kemobyte