Opening an email with the native Viewer

I have seen a few examples by which the native email Viewer can be opened at various stages of composition of mail, but I try to open an email enxisting...

According to the last entry on this page:

https://developer.BlackBerry.com/Cascades/documentation/device_platform/invocation/email.html

Who is seems possible assuming a URL format of:

PIM:message / rfc822: [accountID]: [messageID]

So I tried to do exactly this in several ways, but I always find myself with an empty email ready for composition (not what I want).

I don't know if the uri of the message must be in the request "form data", or simply by calling setUri on the subject of the request. For example:

request.setTarget ("sys.pim.uib.email.hybridcomposer");

request.setAction ("bb.action.VIEW");

request.setMimeType("message/rfc822");

QVariant Accide is QVariant::fromValue(m_currentAccount.id());.

QVariant mID = QVariant::fromValue (m_currentMessageId);

QUrl url = QUrl ("pim:message / rfc822:" + accID.toString () + ":" + mID.toString () + "");

QByteArray data;

Data.Append ("[{\"uri\ ": [------" "]"}] ");

Data.Append (URL. ToString(QUrl::None));)

Data.Append ("------"]}] "");

InvokeTargetReply * response = invokeManager.invoke (request);

"[{[result woud in data containing" [{"uri": ["pim:message / rfc822:1366609299:773"]}] "]}]."

but alas no e-mail, even if replaces the last bit with:

QUrl url = QUrl ("pim:message / rfc822:" + accID.toString () + ":" + mID.toString () + "");

request.setUri (url);

for example, url looks like: "pim:message / rfc822:1366609299:1206".

always end up with a white, ready to dial, email? Clues as to what I'm missing?

Kind regards

KeV

Looks like the documentation is wronge. If you want to display an existing email, on what the target should be set

'sys.pim.uib.email.previewer '.

You had to use the mechanism of queryTarget to figuret this point.

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for

  • Virus (InstallMac spyware) in this dashboard widget from the Apple site

    I downloaded an app on the Apple site that leads directly to a page with viruses (InstallMac spyware). It is this dashboard widget: https://www.Apple.com/downloads/dashboard/radio_podcasts/lastfmdashboardwidget.h tml To prevent it. Does not accept th

  • accident of execution TestStand 3.5

    Hello I have the following situation: I start a sequence using batch processing model in the sequence editor of Teststand 3.5 (with 6 sockets for example). MainSequence I start two new runs and then I wait until after the results. After a loop of the

  • G56 graphics driver

    Hello I managed to install a dual boot XP/7 on my laptop G56 106SA by slipstreaming SATA drivers, but I still have a problem with the graphics drivers.  I have an ATi Radeon HD 4250 and HP or AMD provide a XP driver. I'm stuck someone can help?

  • Product key does not work

    I have my Windows XP Setup CD 2002 version family. Arriving on the box to add the product key, it said it was invalid. I had the CD has crossed later and shot to the top of the key that the CD has the text document. Attempt to use this key caused him

  • Help blackBerry Smartphones! No outgoing call...

    Hello I just got a new 9700 and when I'm composing it gives me me the following message. Call failed due to the error of control box SIM Toolkit. Please try again later. and then I get a second message- SIM: Call inadmissible. I tried to update its v