如何接收来自 gmail android 的电子邮件 [英] How to receive email from gmail android

查看:67
本文介绍了如何接收来自 gmail android 的电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是安卓编程新手.

我的应用程序使用 Gmail 帐户发送电子邮件.我现在需要的是如何接收来自 G 邮箱的新邮件?或者至少如何获得我的收件箱中有新邮件的通知?

I got my app with Gmail account sends emails. What I need now is how to receive new emails from G mail? Or at least how to get a notification that there is a new mail in my inbox?

我不想使用市场上的 Gmail 应用程序或嵌入式电子邮件 Android 应用程序等...我正在制作自己的应用程序来管理 Gmail 帐户(就像我自己的应用程序中的某种小部件).

I don't want to use Gmail app from market or embedded email android app or so...I'm making my own app that manages Gmail accounts (like some kind of widget in my own app).

推荐答案

为了实现这个功能,首先你需要与gmail服务器建立连接,然后你需要检查收件箱文件夹是否有新邮件.如果找到,则使用 NotificationManager 将通知发送给用户.请点击此链接 http://www.jondev.net/articles/Sending_Emails_without_User_Intervention_%28no_Intents%29_in_Android 另一个链接是

In order to implement this functionality ,first you need to establish the connection with the gmail server,then you need to check the inbox folder for new messages. If find then send the notification to the user using NotificationManager. please follow this links http://www.jondev.net/articles/Sending_Emails_without_User_Intervention_%28no_Intents%29_in_Android and another link is

发送电子邮件Android 使用 JavaMail API 而不使用默认/内置应用程序

这篇关于如何接收来自 gmail android 的电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆