invoking sms/mms/email application with subject
| Wed, 2008-06-04 16:20 | |
|
Hi, i have invoked sms application using the ActivateViewL(const TVwsViewId &aViewId, TUid aCustomMessageId, const TDesC8 &aCustomMessage); the third parameter aCustomMessage only has options to send "To" field, is there any way i can pass the subject/body of sms also. Please help me!!! |
|






Forum posts: 1157
I checked that also a while ago and came to the conclusion that it's not possible to pass more info than you already do.
What I did, then, was putting the body of the new message into the clipboard. That way it was at least easy to get at.
René Brunner
Forum posts: 17
thanks for the reply,
i have in the sonyericsson p1i device, the default browser in the p1i has menu, through which u can send the address(webaddress) to the sms/mms/bluetooth/...
there they are invoking the corresponding application with the body, so i feel there should be some means to do that.
Forum posts: 1157
That's obviously true, but unfortunately that does not yet mean that *you* can do this. Many things in Symbian, S60 and UIQ are undocumented or only available if you become member of some "inner circle" of privileged companies with special membership status, and this might well be such a thing.
René Brunner
Forum posts: 17
ok
i have not tried the clipbaord functionality,
how will u handle that, and also even if u read from clipbaord how will u set the subject to the sms/email/mms application.
Forum posts: 1157
No luck for the subject with my approach.
Assume you have a descriptor iStr with the text, put it into the clipboard like that:
RFs iFs=CEikonEnv::Static()->FsSession();CClipboard* iClipboard=CClipboard::NewForWritingLC(iFs);
CPlainText* iText=CPlainText::NewL();
CleanupStack::PushL(iText);
iText->InsertL(0,iStr);
iText->CopyToStoreL(iClipboard->Store(),iClipboard->StreamDictionary(),0,iStr.Length());
iClipboard->CommitL();
CleanupStack::PopAndDestroy(iText);
CleanupStack::PopAndDestroy(iClipboard);
René Brunner
Forum posts: 17
Thanks brunner,