Due to the huge number of people interested on using JavaMail API in
Android, I'm publishing this "tutorial".
There are some things to keep in mind:
- There are few classes and interfaces to add: DataTransfer and
Transferable (stripped down from Apache)
- Modify Sun JavaMail: remove "static files" dependency (some MIME-
types are associated by using external files, which cannot be opened
directly by Android, due to security policy), adding these
associations programmatically; remove some awt.Image dependencies (I
did not experienced any issue managing images).

I'm providing a file you can get at 
http://www.lucabelluccini.com/data/javamail_lbmod.jar
containing the last version of JAF and JavaMail (modified), plus
missing classes.
I hope licences will be respected. Contact me if some of your works
will use this javamail source code or if there are improvements to be
appied.

For mail fetching from POP3, IMAP... You can take a look at
http://java.sun.com/products/javamail/ ...
Remember that, in Android, the opening of a POP3 or IMAP session is a
huge task. It is necessary to implement some kind of "run in
background" or "multithreading".
Some code at http://www.lucabelluccini.com/data/retrievemail.snippet.java
Contact me in case of need or additional information.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to