[英]Receive email notifications in android app
Im trying to make a simple app (just for learning sake) that will be able to send and receive emails from my own server. 我试图制作一个简单的应用程序(仅出于学习目的),使其能够从我自己的服务器发送和接收电子邮件。 I don't have a problem sending emails from my app, my problem is:
我从我的应用程序发送电子邮件没有问题,我的问题是:
I have tried searching for this, but have found nothing. 我尝试搜索此文件,但未找到任何内容。
Thanks for your help 谢谢你的帮助
C2DM does push notifications, depending on your server. C2DM会根据您的服务器推送通知。 Search stackoverflow for it.
搜索stackoverflow。
The app can check the inbox with whatever API is available to get the server's status. 该应用程序可以使用任何可用的API来检查收件箱,以获取服务器的状态。 Even HTTP is possible.
甚至HTTP都是可能的。
The SampleSyncAdapter sample app is an example of using a sync adapter to regularly synchronize data between the server and the device, but you can use the same idea for download-only. SampleSyncAdapter示例应用程序是使用同步适配器定期在服务器和设备之间同步数据的示例,但是您可以将相同的想法用于仅下载。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.