简体   繁体   中英

How to access default account and send, receive and reply mail messages

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM