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

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

问题描述

我是 Android 编程的新手.

I am new to android programming.

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

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_%28%no_Intent29_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天全站免登陆