Following the BlackBerry documentation on the Invocation Framework, I'm trying to invoke opening a contact, and SMS and E-mail composing. The contact opening works fine, but I cannot get the SMS and E-mail composition to work in the Simulator. The code is being executed, but nothing happens. Any ideas what can I be doing wrong?
Here's a piece of the code I'm using:
InvokeRequest request;
request.setAction("bb.action.COMPOSE");
request.setMimeType("message/rfc822");
request.setTarget("sys.pim.uib.email.hybridcomposer");
QByteArray ba(list.toUtf8());
request.setData(ba);
m_invokeManager->invoke(request);
Thanks for any hints!
I am also facing this issue.
SMS and E-mail is not working simulator because SMS/Email app is not installed in simulator.
You have to test in device.
Below code is working fine in device for me..
Send SMS:
InvokeRequest invokeRequest;
invokeRequest.setTarget("sys.pim.text_messaging.smsuri");
invokeRequest.setAction("bb.action.OPEN");
invokeRequest.setUri("sms:4444");
invokeRequest.setMimeType("*");
Send Email:
InvokeRequest invokeRequest;
invokeRequest.setTarget("sys.pim.uib.email.hybridcomposer");
invokeRequest.setAction("bb.action.COMPOSE");
invokeRequest.setUri("mailto:[email protected]");
invokeRequest.setMimeType("message/rfc822")
Thanks..