How to open the Blackberry email app, ready to compose an email to a given address?

此生再无相见时 提交于 2019-12-02 07:04:45

问题


In my Blackberry application, I have a email address I want the user to be able to send an email to. I would like to have the built in Email Application run the compose screen with the "to" field filled in with the email address I supply, similar to how desktop mail clients respond to a "mailto" link. Does the API have a function for this?


回答1:


Use the Invoke Class

With a MessageArgument

And you should be ok

If you need more customization Use the Message class with the Adress class to add to the Message en then send it to the MessageArgument then you can send it to Invoke

You can also see a more detailed explanation on RIM website



来源:https://stackoverflow.com/questions/2762034/how-to-open-the-blackberry-email-app-ready-to-compose-an-email-to-a-given-addre

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!