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
ekke
Posts: 1,428
Registered: ‎04-08-2010
My Device: Z10 (red Limited Edition), Q10, Z30
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 :smileyhappy:

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

BlackBerry Elite Developer
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

Open Source Enthusiast
blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner
bb10-development: http://appbus.org Twitter: @ekkescorner
Please use plain text.
Contributor
jenicek
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!!!
Please use plain text.