11-13-2012 04:09 PM
Is it possible to monitor voice calls on BB 10 by listening to incoming/outgoing call events?
If not, is there a way to access Call History files from the System? (http://developer.blackberry.com/native/beta/docume
As for SMS, there seems to be an access_sms_mms permission (http://developer.blackberry.com/native/beta/docume
Is this done by accessing System files as well?
11-16-2012 01:40 PM
It is possible to monitor phone events. There is a permission access_phone which you will need to set in your bar-descriptor.xml. You will have to edit the source manually because this permission is not listed in the Application in the Momentics IDE.
To listen to events you can use the Phone class and connect to callUpdated signal.
11-16-2012 02:31 PM
11-16-2012 02:57 PM
To make a call, set the action to "bb.action.DIAL" and the MIME type to "application/vnd.blackberry.phone.startcall". (see InvokeRequest). The following snippet shows how to set the data for the call, note the data must be PPS encoded:
QVariantMap map; map.insert(“number”, “15198887465”); // required map.insert(“line_id”, “cellular”); // optional map.insert(“apply_smart_dialing”, false); // optional QByteArray requestData = PpsObject::encode(map, NULL);