03-19-2012 04:28 PM - edited 03-20-2012 03:46 AM
I am writing an app which re-routes calls through an exchange server for security purposes, and I need to remove the calls to the exchange from the phone's display.
For example, the phone user calls Anne Example on his/her BB, the app cancels the call, and dials a second call to the exchange server, which forwards on to Anne Example. From the user's point of view, this is a single call, but the device shows both calls:
The 'Central Exchange' call shown above is just clutter to the user, and it would be good to remove it from the pone display.
I can delete the call log using the class net.rim.blackberry.api.phone.phonelogs.PhoneLogs:
PhoneLogs phoneLogs = PhoneLogs.getInstance();
// ... work out the call index ...
This removes the call from the 'call history' screen, as shown below:
After the call to PhoneLogs.deleteCall(), there is no call history for the 'Central Exchange' (as shown in the second and third screen shots above), but the item still remains in the 'call screen' (as seen in the first screenshot above). This item can be removed manually by choosing 'Delete' from the menu, and confirming the message 'Delete all call logs for this item?'. But I would like know if it is possible to delete the item programmatically, to tidy up the screens properly.
Any help with this problem much appreciated!
05-25-2012 03:19 AM