Saving an E-Mail after downloading with JavaMail

2019-09-09 20:41发布

问题:

I'm building an E-Mail Application, so I want to save the E-Mails to the Device, my App is running on.

I know that there is the function MimeMessage.writeTo(), but I've problems with handling MimeMessages through my Application so I made my own class, called Mail!

How can I save an Object (or Object-Array) of this class on my Phone? Should it be an XML-File?!

I looked for this in the Internet but the only I said it the function I mentioned before!

Thanks :)