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

Native Development

Reply
Developer
Posts: 1,746
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone

Re: How to invoke "Text Messages" app to compose sms from QML?


knobtviker wrote:

@ekke

Yes, C++ way works, thank you.

 

@Baran has found a working set of code for QML:

//Plucked out code snippet:
Invocation { query: InvokeQuery { invokeTargetId: "sys.pim.text_messaging.smsuri" mimeType: "*"
uri: "sms:0123456789?body=Blabla some text" } onArmed: { if (invokeQuerySMS.uri != "") { trigger("bb.action.OPEN"); } } }

 I can confirm both ways work so this thread can be closed as solved.


great !

now it's solved the C++ and QML way Smiley Happy

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner
Highlighted
Contributor
Posts: 10
Registered: ‎10-13-2011
My Device: 9900
My Carrier: T-mobile

Re: How to invoke "Text Messages" app to compose sms from QML?

Thank you very much!!!