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

Android™ Runtime Development

Reply
Eir
Contributor
Eir
Posts: 38
Registered: ‎11-28-2011
My Device: Z10
My Carrier: asdf
Accepted Solution

Call log / history of calls

Can I access / modify the call log (aka history of calls)?

http://eir3.com
Please use plain text.
Trusted Contributor
imre_m
Posts: 159
Registered: ‎11-17-2010
My Device: PlayBook, Z10, Q10

Re: Call log / history of calls

Hi,

 

This should be possible, the unsupported API documentation doesn't mention it.

There are the CallLog APIs for this purpose: http://developer.android.com/reference/android/provider/CallLog.Calls.html

 

Here you have some sample code as well: http://theappguruz.com/CodeRecipe/call-logs-android/

You may find a lot more by googling a bit.

--
If you find this post useful please Like it.
If it solves your problem please mark as solution.
Please use plain text.
Eir
Contributor
Eir
Posts: 38
Registered: ‎11-28-2011
My Device: Z10
My Carrier: asdf

Re: Call log / history of calls

Hi imre_m, thanks for the reply. Could you confirm that it works, or are you just guessing? Because I was able to read the docs myself before posting.

 

I have several Android apps that read and display the call log properly in Android, but not when ported to the the BB10.

 

I tried also third-party apps that display the call log in Android, they also fail to display it in BB10.

http://eir3.com
Please use plain text.
Trusted Contributor
imre_m
Posts: 159
Registered: ‎11-17-2010
My Device: PlayBook, Z10, Q10

Re: Call log / history of calls

Hi,

 

I haven't tried this yet. Based on the documentation the API is supported so you should build a test application and check it.

--
If you find this post useful please Like it.
If it solves your problem please mark as solution.
Please use plain text.
Eir
Contributor
Eir
Posts: 38
Registered: ‎11-28-2011
My Device: Z10
My Carrier: asdf

Re: Call log / history of calls

If you read my previous message carefully, you could understand that I already made tests with several applications that work flawlessly on Android.

 

I posed this question here exactly because the BB10 docs mention no restrictions of the call log, and still it cannot be read. At least not in BB 10.1

 

So, I would appreciate if someone can help me with proven insights, not with speculations and guesses that he/she has not even tried. Thank you.

http://eir3.com
Please use plain text.
Trusted Contributor
imre_m
Posts: 159
Registered: ‎11-17-2010
My Device: PlayBook, Z10, Q10

Re: Call log / history of calls

I have an app where I've added the required permissions to the manifest file for contacts and calls RW access. I've also placed some related API calls. Up to this point it works with no build and conversion errors, but my app doesn't need to access the call log so I can't confirm more.

 

A ported apk can fail for a number of reasons. You should check it with your own test application so you may see the logs directly.

--
If you find this post useful please Like it.
If it solves your problem please mark as solution.
Please use plain text.
BlackBerry Development Advisor
bbenninger
Posts: 130
Registered: ‎04-19-2013
My Device: BlackBerry Z10

Re: Call log / history of calls

[ Edited ]

This is not supported, the Android API is not hooked up to retreive this data.

 

Edit: Usually when there's an equivalent native API, the corresponding API in Android will be supported.  The Android API almost always uses the native equivalent for its implementation.  AFAIK there isn't a native call logs API.

Please use plain text.
Eir
Contributor
Eir
Posts: 38
Registered: ‎11-28-2011
My Device: Z10
My Carrier: asdf

Re: Call log / history of calls

Thanks for the precise answer.

 

You should also include a notice about this in the limitations section of the Android Development documentation.

 

Any hint if this will be supported at a later time?

http://eir3.com
Please use plain text.