Blackberry - how to send email with attachment?

帅比萌擦擦* 提交于 2020-01-16 18:35:21

问题


In my application, I allow the user to create an image. I then want to give the ability to email that image. The concept is simple, but the execution is a bit more complex.

My first thought was to create my own email screen and send the email myself. I understand how to accomplish this, but I don't like re-inventing the wheel and would like to reuse the blackberry's email functionality.

However, I am unsure about the capabilities of the blackberry and the best approach to take. I'm looking for suggestions and comments on feasibility.

1) Take the image, save it on the handset, open up the email program and let the user send the email

2) save image on the handset, open up email program, programatically attach the image to an email and pre-populate the subject and body fields.


回答1:


Have a look at these two documents:

  1. How To - Create an attachment
  2. How To - Create and send messages


来源:https://stackoverflow.com/questions/1676727/blackberry-how-to-send-email-with-attachment

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