Using content provider to fetch emails

ぐ巨炮叔叔 提交于 2019-12-13 18:31:55

问题


I need to fetch and list the received emails in my own layout listview. Is this possible through Content Provider?


回答1:


There are no documented and supported content providers for "received emails". "Email" is not really a part of the operating system (though there are a few lingering references to it from back in the 2006-2007 timeframe when there was no clear distinction between the OS, apps, and the SDK). There are probably hundreds of email clients, only a few of which might have such content providers, and probably no standards between them.

You will find some blog posts and other answers here on StackOverflow that point you to a Gmail content provider. This is an example of an undocumented and unsupported content provider. It was also just closed off by Google.

You are welcome to write your own email client, store your own emails, and display them as you see fit, though.



来源:https://stackoverflow.com/questions/7122184/using-content-provider-to-fetch-emails

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!