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 Contributor
Posts: 5
Registered: ‎10-30-2013
My Device: z10
My Carrier: Viettel

How to get data of Call Log and insert to database?

Hi guys.

 

I have problems with Call Log. I want to read Call Log and get data to insert to SqlLite database. I believe that Blackberry will have API to get log but I am not finding it now? I know invoke to Call Log View Screen but it is not my objective. Can you help me?

 

Thanks.

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

Re: How to get data of Call Log and insert to database?

You can open the call log from your app but not import the data itself:

 

https://developer.blackberry.com/native/documentation/cascades/device_platform/invocation/phone.html

 

 

This will only work if your application is running when the call is received.

New Contributor
Posts: 5
Registered: ‎10-30-2013
My Device: z10
My Carrier: Viettel

Re: How to get data of Call Log and insert to database?

Thank you for response. I know how to invoke Phone Call Log. But it is only method to invoke Log Screen mean that navigate to other screen and don't get any reply data. We can't have any get data dynamically from that. I mean that Blackberry will have API like CallServices. But maybe on next SDK version.

Contributor
Posts: 24
Registered: ‎11-11-2013
My Device: BB 10 -BlackBerry Z10
My Carrier: BlackBerry

Re: How to get data of Call Log and insert to database?

[ Edited ]

Yeah hope so ... Currently they dont have any api for it.

New Developer
Posts: 20
Registered: ‎03-27-2012
My Device: Z10 LE, PlayBook & Dev Alpha C
My Carrier: Vodafone

Re: How to get data of Call Log and insert to database?

I asked the same question a while ago on twitter: https://twitter.com/LaurenceMuller/status/387911572397371392

Hopefully they'll add an API for it in the next SDK version.