Rahul Kalidindi
Rahul Kalidindi

Reputation: 4736

Opening an email client on clicking a button

I am designing an app in which i need open an email client on clicking a button. The email client should be opened with pre defined subject,'to' address and from address of the user. Is there a way to attain this??? Plz provide me the solution and code if possible...

Upvotes: 0

Views: 393

Answers (1)

Jonathan
Jonathan

Reputation: 1731

If you want to open the existing BlackBerry messages application use the Invoke class with the appropriate MessageArguments e.g.

Invoke.invokeApplication(Invoke.APP_TYPE_MESSAGES, new MessageArguments(MessageArguments.ARG_NEW, <to address>, <subject>, <body>);

I don't know of a way to change the from address.

Upvotes: 2

Related Questions