0

I want to retrieve all google emails in Android application code. Can anyone please mention/tell the APIs which can be used to retrieve the emails and display those mails in browser or in a list view. then after clicking on the item, show the contents of the mail?

Thanks in advance

Mustansar Saeed
  • 2,730
  • 2
  • 22
  • 46
  • Please see this link. It may help you : http://stackoverflow.com/questions/2112965/how-to-get-the-android-devices-primary-e-mail-address – Ankit Feb 04 '14 at 13:04
  • @Ankit: The above mentioned link discusses the accounts configured on android device using AccountManager but I am asking about how to retrieve emails after showing a dialog to user for asking username and password. – Mustansar Saeed Feb 04 '14 at 13:18
  • Why can't you just send them to gmail.com? That seems to meet all your requirements. – Max Feb 04 '14 at 14:32
  • @Max: I am not using web browser. I am making a client where you can configure different email accounts. You can add GMAIL, Yahoo etc. For that I need to fetch the information from the email provider. Is this making sense? – Mustansar Saeed Feb 04 '14 at 18:40

0 Answers0