1

Here in my company, we have developed a software for the visually impaired and want to incorporate reading and replying emails. However, we would like do an application to read and answer email more easily... and not reconfigure the account, but use default account of the Android OS when user inform...

We researched some posts and found: Content providers, cannot access this information: Account and Mail messages ... and throws Security Exceptions by packages...

Has anyone gone through similar situations? How to solve this? Have I just develop a full client mail? and requiring the user to reconfigure account in my app?

Best regards, Thanks

Mateus
  • 389
  • 3
  • 20

1 Answers1

1

To access the accounts already configured on the device, you'll need to add the GET_ACCOUNTS permission in the AndroidManifest.xml, and maybe ACCOUNT_MANAGER.

To send/receive email, you'll need to implement or use an existing SMTP library such as javamail-android - note, they seem to have a few outstanding issues

There's some good information in this question

Community
  • 1
  • 1
Nicholas Albion
  • 3,096
  • 7
  • 33
  • 56
  • Hi Nicholas! Thanks for help me! Do you have some example code to get the messages from the inbox? – Mateus Aug 24 '12 at 13:04
  • Are you going to assume that everybody uses the built-in email app? My HTC comes with a GMail client, a HTC email client, and at one stage I also had the Yahoo! email app installed. – Nicholas Albion Aug 24 '12 at 13:15
  • Wouldn't you be better off including your own POP/SMTP client on your app? – Nicholas Albion Aug 28 '12 at 22:35