04-22-2014 10:53 AM
you can get the call logs using this api
And for sms there is no api.
FAILED: The link you have is for Java. This is for BB10.
You can not get call log on BB10. There are ALOT of missing parts still.
04-24-2014 10:53 AM
Currently, you cannot retrieve the phone logs data in your BlackBerry 10 app. You can only invoke the Phone logs view into your UI. This is possibly for user privacy considerations.
For further details, checkout the following forum posts:
If you are interested, however, you can register your app to listen to phone events by using the Phone class and connecting to the callUpdated signal.
As with respect to the sms history, you can use the MessageService API to listen to incoming messages. Here, don't forget to add the SMS access permission (access_sms_mms) to your bar-descriptor.
bb::pim::message::MessageService* m_messageService = new bb::pim::message::MessageService(this); connect(m_messageService, SIGNAL( messageAdded(bb::pim::account::AccountKey, bb::pim::message::ConversationKey, bb::pim::message::MessageKey)), SLOT( onMessageReceived(bb::pim::account::AccountKey, bb::pim::message::ConversationKey, bb::pim::message::MessageKey)));
04-25-2014 02:19 AM - edited 04-25-2014 02:24 AM
Can you tell me when app is closed that time messageUpdated(bb:im::account::AccountKey, bb:im::message::ConversationKey, bb:im::message::MessageKey, bb:im::message::MessageUpdate) is called if any message is send from native app Text message?
Thanks & Regards
04-25-2014 08:48 AM
Your app will only receive those events while it's running.
04-25-2014 09:37 AM
This is currently not possible.