Developing an email client app on android

skay- picture skay- · Nov 4, 2011 · Viewed 21.8k times · Source

I am trying to develop a small application for sending and receiving emails on the Android plataform. Currently i have been using the Javamail api trying to send an email. However i thought that if i implement my app using javamail how am i going to receive an email and get a notification from my app that i have recieved it? Is this having to do with Service and Provder classes found on Android? I am a complete beginner on android.

Also i tried this piece of code found here :

Android Programming - Send mail

with no luck since application does not work.

Answer

Hontvári Levente picture Hontvári Levente · Nov 4, 2011

JavaMail can also be used to fetch mails from a POP3 server. As an example look at this class: PopMailImporter.java, especially the importMails and importMail function.