How to open an existing message (via email) programmatically on BlackBerry

I am trying to open an existing message from my application so that my own mail client can display the contents of the message, but I cannot find a way to do this. I found a way to open a newly created message with

Invoke.invokeApplication(Invoke.APP_TYPE_MESSAGE, new MessageArguments (MessageArguments.ARG_NEW, "to", "subject", "body")); 

But trying to open an existing message throws an ObjectGroupReadOnlyException.

So how can I do this? Any suggestions?

+4
source share
2 answers

I tried to display a message (using my own email application) from another application. Basically: specify a different view in the Inbox, but when the user selects an email, send it to your own email application with an open email.

In any case, this is not possible.

0
source

In the Blackberry SDK samples, you can find a demo application in which you can understand how to read your mailbox using your own application.

BlackberryMailDemo Demo Name

+1
source

Source: https://habr.com/ru/post/1312571/


All Articles