1

Possible Duplicate:
How to receive email from gmail android

Is there a way to get all the received messages from my gmail to my android application. Basically, I would like to get the received messages from Gmail account and if I receive a message from a particular sender I will perform some operations with the content of the message. Is it possible to do so?? if yes, can you please tell me from where to start??

Community
  • 1
  • 1
Ðina YŏŜri
  • 55
  • 2
  • 10

1 Answers1

2

Javamail-android

this tutorial is very useful

Similar question

to read unread messages you can use gmail4j

GmailClient client = new RssGmailClient();
GmailConnection connection = new HttpGmailConnection(LoginDialog.getInstance().show("Enter Gmail Login"));
client.setConnection(connection);
final List<GmailMessage> messages = client.getUnreadMessages();
for (GmailMessage message : messages) {
    System.out.println(message);
}
Community
  • 1
  • 1
Ahmed Kato
  • 1,697
  • 4
  • 29
  • 53